Check if a given trace hook word is being traced by system trace.
Runtime Services Library (librts.a)
#include <sys/trcmacros.h>
int trc_ishookon(int chan, long hkwd)
The trc_ishookon subroutine returns 1 if tracing for the specified channel is on and the specified hook word is being traced, otherwise it returns 0.
Item | Description |
---|---|
chan | The channel to query ranging from channel number 0 though 7. |
hkwd | The hook word to be traced by system trace. |
Item | Description |
---|---|
1 | The specified hook word is being traced. |
0 | Hook word is not being traced or system trace is off. |
/dev/systrct1[-{0-7}]