summaryrefslogtreecommitdiff
path: root/Kernel/API
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-12-30 15:19:57 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-30 16:28:27 +0100
commit91332515a613d054b30e0510b22afed9a3c5d3f6 (patch)
treea2047724a3fcecb51a5ae1b5e1c81f40d58dd612 /Kernel/API
parent7413a7c50959575388ca3dcc1a3341ef8e89e555 (diff)
downloadserenity-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.h8
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();