diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-08 21:07:49 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-08 21:07:49 +0100 |
commit | 9a7ba7fd88fbc87c6e25e82d8c3bb838bf1ebf8d (patch) | |
tree | b223480247a535bca708672305698c1479c09246 /kern/profile.c | |
parent | b75c7dda611432e8598bcd0ab9652380a4f819c7 (diff) |
Add names to kernel tasks and threads
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; |