trcstart Subroutine
Purpose
Starts a trace session.
Library
Runtime Services Library (librts.a)
Syntax
int trcstart( Argument)
char *Argument;
char *Argument;
Description
The trcstart subroutine starts a trace session. The Argument parameter points to a character string containing the flags invoked with the trace daemon. To specify that a generic trace session is to be started, include the -g flag.
Parameters
Item | Description |
---|---|
Argument | Character pointer to a string holding valid arguments from the trace daemon. |
Return Values
If the trace daemon is started successfully, the channel number is returned. Channel number 0 is returned if a generic trace was not requested. If the trace daemon is not started successfully, a value of -1 is returned.
Files
Item | Description | |
---|---|---|
/dev/trace | Trace special file. |