1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

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.
This commit is contained in:
Linus Groh 2020-12-30 15:19:57 +01:00 committed by Andreas Kling
parent 7413a7c509
commit 91332515a6
3 changed files with 34 additions and 1 deletions

View file

@ -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();