CT_TRCON macro

Purpose

Return information on whether any trace is active at a certain level for a component.

Syntax

#include <sys/ras_trace.h>
CT_TRCON(cb, level)

Description

The CT_TRCON macro allows you to ascertain whether any type of trace (Component Trace, lightweight memory trace or system trace) will record events for the component specified at the trace detail level specified.

Note: If the cb input parameter has a value of RAS_BLOCK_NULL, the CT_TRCON macro indicates that the trace is off.

Parameters

Item Description
ras_block_t cb The cb parameter is the RAS control block pointer that refers to the component that this trace entry belongs to.
int level Specifies the trace detail level.