diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-30 15:19:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-30 16:28:27 +0100 |
commit | 91332515a613d054b30e0510b22afed9a3c5d3f6 (patch) | |
tree | a2047724a3fcecb51a5ae1b5e1c81f40d58dd612 /Kernel/API | |
parent | 7413a7c50959575388ca3dcc1a3341ef8e89e555 (diff) | |
download | serenity-91332515a613d054b30e0510b22afed9a3c5d3f6.zip |
Kernel: Add sys$set_coredump_metadata() syscall
This can be used by applications to store information (key/value pairs)
likely useful for debugging, which will then be embedded in the coredump.
Diffstat (limited to 'Kernel/API')
-rw-r--r-- | Kernel/API/Syscall.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index e83a67b5a3..1567de7fc9 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -196,7 +196,8 @@ namespace Kernel { S(adjtime) \ S(allocate_tls) \ S(prctl) \ - S(mremap) + S(mremap) \ + S(set_coredump_metadata) namespace Syscall { @@ -442,6 +443,11 @@ struct SC_ptrace_peek_params { u32* out_data; }; +struct SC_set_coredump_metadata_params { + StringArgument key; + StringArgument value; +}; + void initialize(); int sync(); |