HP-UX Reference (11i v3 07/02) - 2 System Calls (vol 5)

t
ttrace(2) ttrace(2)
The following three arguments provide information regarding the system call being exe-
cuted when the thread was stopped. This information is valid only if the
TTS_INSYSCALL bit is set in tts_flags.
tts_scno is the system call number.
tts_scnargs is the number of arguments of the system call.
tts_scarg is the argument list of the system call.
The data associated with a TTEVT_EXEC event is as follows:
typedef struct {
int tts_pathlen;
} ttexec_data_t;
tts_pathlen
is the length of the pathname of the
exec() system call.
The data associated with a
TTEVT_FORK ,
TTEVT_VFORK or TTEVT_FORK_FAIL event
is as follows:
typedef struct {
pid_t tts_fpid;
lwpid_t tts_flwpid;
int tts_isparent;
int tts_errno;
} ttfork_data_t;
tts_fpid
is the process ID of the other side of the fork. This field is set to zero for the
TTEVT_FORK_FAIL event.
tts_flwpid is the thread ID of the other side of the fork. This field is set to zero for the
TTEVT_FORK_FAIL event.
tts_isparent is zero for the child event and one for the parent.
tts_errno is set to error code indicating the reason for error in TTEVT_FORK_FAIL
event. This field is set to zero for the TTEVT_FORK and TTEVT_VFORK events.
The data associated with a TTEVT_PREFORK
event is as follows:
typedef enum {
TTS_FORK,
TTS_VFORK
} ttpf_t;
typedef struct {
pid_t tts_fpid;
lwpid_t tts_flwpid;
ttpf_t tts_type;
} ttprefork_data_t;
tts_fpid
is the process ID of the other side of the fork.
tts_flwpid is the thread ID of the other side of the fork.
tts_type is the type of fork.
The data associated with a TTEVT_SIGNAL event is as follows:
typedef struct {
int tts_signo;
ttsigf_t tts_sigflags;
uint64_t tts_sigaction;
siginfo_t tts_siginfo;
} ttsignal_data_t;
tts_signal
is the signal number.
tts_sigflags is TTSF_USERSIGINFO if a siginfo was delivered with the signal, 0
otherwise.
tts_sigaction is the disposition of the signal.
HP-UX 11i Version 3: February 2007 5 Hewlett-Packard Company 501