mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27: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
|
@ -95,6 +95,12 @@ int perf_event(int type, uintptr_t arg1, FlatPtr arg2)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int perf_register_string(uintptr_t string_id, char const* string, size_t string_length)
|
||||
{
|
||||
int rc = syscall(SC_perf_register_string, string_id, string, string_length);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int get_stack_bounds(uintptr_t* user_stack_base, size_t* user_stack_size)
|
||||
{
|
||||
int rc = syscall(SC_get_stack_bounds, user_stack_base, user_stack_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue