X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/c18c124eaa464aaaa5549e99e5a70fc9cbb50944..3e170ce000f1506b7b5d2c5c7faec85ceabb573d:/osfmk/kperf/threadinfo.c diff --git a/osfmk/kperf/threadinfo.c b/osfmk/kperf/threadinfo.c index d78af2068..382a05304 100644 --- a/osfmk/kperf/threadinfo.c +++ b/osfmk/kperf/threadinfo.c @@ -73,7 +73,7 @@ void kperf_threadinfo_sample(struct threadinfo *ti, struct kperf_context *context) { thread_t cur_thread = context->cur_thread; - BUF_INFO1( PERF_TI_SAMPLE, (uintptr_t)cur_thread ); + BUF_INFO1( PERF_TI_SAMPLE, (uintptr_t)thread_tid(cur_thread) ); // fill out the fields ti->pid = context->cur_pid; @@ -112,7 +112,7 @@ kperf_threadinfo_extra_sample(struct tinfo_ex *tex, struct kperf_context *contex /* check if there's anything for us to do */ if( t_chud & T_AST_NAME ) { - BUF_INFO1( PERF_TI_XSAMPLE, (uintptr_t)cur_thread ); + BUF_INFO1( PERF_TI_XSAMPLE, (uintptr_t)thread_tid(cur_thread) ); /* get the name out */ #ifdef FIXME