summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.h
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2019-12-07 12:45:26 -0700
committerAndreas Kling <awesomekling@gmail.com>2019-12-08 14:09:29 +0100
commit9058962712201336ec5e20638137d3828951950e (patch)
tree7cdd32c7d2e6c62fc9273fc6ac394eb1695b463e /Kernel/Syscall.h
parent875ab0cf107894cf7311ea6d779cdae980e88627 (diff)
downloadserenity-9058962712201336ec5e20638137d3828951950e.zip
Kernel: Allow setting thread names
The main thread of each kernel/user process will take the name of the process. Extra threads will get a fancy new name "ProcessName[<tid>]". Thread backtraces now list the thread name in addtion to tid. Add the thread name to /proc/all (should it get its own proc file?). Add two new syscalls, set_thread_name and get_thread_name.
Diffstat (limited to 'Kernel/Syscall.h')
-rw-r--r--Kernel/Syscall.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h
index dcafa120e2..aa70ab1699 100644
--- a/Kernel/Syscall.h
+++ b/Kernel/Syscall.h
@@ -142,7 +142,9 @@ typedef u32 socklen_t;
__ENUMERATE_SYSCALL(join_thread) \
__ENUMERATE_SYSCALL(module_load) \
__ENUMERATE_SYSCALL(module_unload) \
- __ENUMERATE_SYSCALL(detach_thread)
+ __ENUMERATE_SYSCALL(detach_thread) \
+ __ENUMERATE_SYSCALL(set_thread_name) \
+ __ENUMERATE_SYSCALL(get_thread_name)
namespace Syscall {