diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_ktrace.c | 2 | ||||
-rw-r--r-- | sys/sys/ktrace.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index e4b4b5c..a276e63 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -237,8 +237,8 @@ ktr_getrequest(int type) mtx_unlock(&ktrace_mtx); microtime(&req->ktr_header.ktr_time); req->ktr_header.ktr_pid = p->p_pid; + req->ktr_header.ktr_tid = td->td_tid; bcopy(p->p_comm, req->ktr_header.ktr_comm, MAXCOMLEN + 1); - req->ktr_header.ktr_unused = 0; req->ktr_buffer = NULL; req->ktr_header.ktr_len = 0; } else { diff --git a/sys/sys/ktrace.h b/sys/sys/ktrace.h index eb0cfc7..f4171c3 100644 --- a/sys/sys/ktrace.h +++ b/sys/sys/ktrace.h @@ -54,7 +54,7 @@ struct ktr_header { pid_t ktr_pid; /* process id */ char ktr_comm[MAXCOMLEN+1]; /* command name */ struct timeval ktr_time; /* timestamp */ - intptr_t ktr_unused; /* was ktr_buffer */ + intptr_t ktr_tid; /* was ktr_buffer */ }; /* |