trc_ishookon Exported Kernel Service

Purpose

Checks if a given trace hook word is being traced by system trace.

Syntax

#include <sys/trcmacros.h>

int trc_ishookon (int chan, long hkwd);

Description

The trc_ishookon kernel service informs the user if tracing is on and the specified hook word is being traced.

Parameters

Item Description
chan The channel to query with the range from 0 to 7.
hkwd The hook word to be traced by system trace.

Return Values

Item Description
1 The hook word is being traced.
0 Hook word is not being traced or system trace is off.