Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/ktrace.2
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
The generic header is: | The generic header is: | ||||
.Bd -literal | .Bd -literal | ||||
struct ktr_header { | struct ktr_header { | ||||
int ktr_len; /* length of buf */ | int ktr_len; /* length of buf */ | ||||
short ktr_type; /* trace record type */ | short ktr_type; /* trace record type */ | ||||
pid_t ktr_pid; /* process id */ | pid_t ktr_pid; /* process id */ | ||||
char ktr_comm[MAXCOMLEN+1]; /* command name */ | char ktr_comm[MAXCOMLEN+1]; /* command name */ | ||||
struct timeval ktr_time; /* timestamp */ | struct timeval ktr_time; /* timestamp */ | ||||
intptr_t ktr_tid; /* was ktr_buffer */ | long ktr_tid; /* thread id */ | ||||
}; | }; | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
The | The | ||||
.Va ktr_len | .Va ktr_len | ||||
field specifies the length of the | field specifies the length of the | ||||
.Va ktr_type | .Va ktr_type | ||||
data that follows this header. | data that follows this header. | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |