|
Lines 99-109
Link Here
|
| 99 |
int ktr_len; /* length of buf */ |
99 |
int ktr_len; /* length of buf */ |
| 100 |
short ktr_type; /* trace record type */ |
100 |
short ktr_type; /* trace record type */ |
| 101 |
pid_t ktr_pid; /* process id */ |
101 |
pid_t ktr_pid; /* process id */ |
| 102 |
char ktr_comm[MAXCOMLEN+1]; /* command name */ |
102 |
char ktr_comm[MAXCOMLEN+1]; /* command name */ |
| 103 |
struct timeval ktr_time; /* timestamp */ |
103 |
struct timeval ktr_time; /* timestamp */ |
| 104 |
caddr_t ktr_buf; |
104 |
intptr_t ktr_tid; |
| 105 |
}; |
105 |
}; |
| 106 |
.Ed |
106 |
.Ed |
| 107 |
.Pp |
107 |
.Pp |
| 108 |
The |
108 |
The |
| 109 |
.Va ktr_len |
109 |
.Va ktr_len |
|
Lines 118-129
Link Here
|
| 118 |
The |
118 |
The |
| 119 |
.Va ktr_time |
119 |
.Va ktr_time |
| 120 |
field gives the time (with microsecond resolution) |
120 |
field gives the time (with microsecond resolution) |
| 121 |
that the record was generated. |
121 |
that the record was generated. |
| 122 |
The |
122 |
The |
| 123 |
.Va ktr_buf |
123 |
.Va ktr_tid |
| 124 |
is an internal kernel pointer and is not useful. |
124 |
field holds a threadid. |
| 125 |
.Pp |
125 |
.Pp |
| 126 |
The generic header is followed by |
126 |
The generic header is followed by |
| 127 |
.Va ktr_len |
127 |
.Va ktr_len |
| 128 |
bytes of a |
128 |
bytes of a |
| 129 |
.Va ktr_type |
129 |
.Va ktr_type |