mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibC: Expose new profiling_free_buffer(..)
syscall.
Expose the new `profiling_free_buffer` syscall to user space.
This commit is contained in:
parent
4ed682aebc
commit
3e87e43f9d
2 changed files with 7 additions and 0 deletions
|
@ -62,6 +62,12 @@ int profiling_disable(pid_t pid)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int profiling_free_buffer(pid_t pid)
|
||||
{
|
||||
int rc = syscall(SC_profiling_free_buffer, pid);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int futex(uint32_t* userspace_address, int futex_op, uint32_t value, const struct timespec* timeout, uint32_t* userspace_address2, uint32_t value3)
|
||||
{
|
||||
int rc;
|
||||
|
|
|
@ -39,6 +39,7 @@ int module_unload(const char* name, size_t name_length);
|
|||
|
||||
int profiling_enable(pid_t);
|
||||
int profiling_disable(pid_t);
|
||||
int profiling_free_buffer(pid_t);
|
||||
|
||||
#define THREAD_PRIORITY_MIN 1
|
||||
#define THREAD_PRIORITY_LOW 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue