HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)
t
ttrace(2) ttrace(2)
TTS_INSYSCALL = 0x0010
TTS_IS32BIT = 0x0020
TTS_ATEXIT = 0x0040
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 or TTEVT_VFORK event is as follows:
typedef struct {
pid_t tts_fpid;
lwpid_t tts_flwpid;
int tts_isparent;
} ttfork_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_isparent is zero for the child event and one for the parent.
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.
tts_siginfo is the siginfo, if applicable.
The data associated with a TTEVT_LWP_CREATE
, TTEVT_LWP_TERMINATE or
TTEVT_LWP_ABORT_SYSCALL event is as follows:
typedef struct {
lwpid_t tts_target_lwpid;
} ttthread_data_t;
tts_target_lwpid
is the lwpid of the targeted lwp.
The data associated with a TTEVT_SYSCALL event is as follows:
typedef struct {
int64_t tts_rval[2];
int tts_errno;
} ttsyscall_data_t;
The tts_rval fields are the return value(s) of the system call.
tts_errno is the error status if the system call failed.
Section 2−−438 Hewlett-Packard Company − 4 − HP-UX 11i Version 1: September 2005