mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
Kernel+LibC: Add sys$perf_register_string()
This syscall allows userspace to register a keyed string that appears in a new "strings" JSON object in profile output. This will be used to add custom strings to profile signposts. :^)
This commit is contained in:
parent
00b11d7577
commit
4657c79143
7 changed files with 43 additions and 0 deletions
|
@ -119,6 +119,7 @@ enum {
|
|||
#define PERF_EVENT_MASK_ALL (~0ull)
|
||||
|
||||
int perf_event(int type, uintptr_t arg1, uintptr_t arg2);
|
||||
int perf_register_string(uintptr_t string_id, char const* string, size_t string_length);
|
||||
|
||||
int get_stack_bounds(uintptr_t* user_stack_base, size_t* user_stack_size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue