diff options
Diffstat (limited to 'kern/profile.c')
-rw-r--r-- | kern/profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/profile.c b/kern/profile.c index 4fcd541f..35b273a0 100644 --- a/kern/profile.c +++ b/kern/profile.c @@ -326,7 +326,7 @@ printf("ERROR:mach_sample_thread:cannot set pbuf_nb\n"); cur_thread->thread_profiled = TRUE; cur_thread->thread_profiled_own = TRUE; if (profile_thread_id == THREAD_NULL) - profile_thread_id = kernel_thread(current_task(), profile_thread); + profile_thread_id = kernel_thread(current_task(), "profile", profile_thread); } else { if (!cur_thread->thread_profiled_own) cur_thread->thread_profiled = FALSE; @@ -379,7 +379,7 @@ mach_sample_task (ipc_space_t task, ipc_object_t reply, task_t cur_task) if (turnon && profile_thread_id == THREAD_NULL) profile_thread_id = - kernel_thread(current_task(), profile_thread); + kernel_thread(current_task(), "profile", profile_thread); cur_task->task_profiled = turnon; actual = cur_task->thread_count; sentone = 0; |