mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-16 06:30:41 +00:00
LibCore: Add syscall wrapper for profiling_enable()
This commit is contained in:
parent
4dc23c9b24
commit
c6a743f22c
|
@ -155,6 +155,12 @@ ErrorOr<void> disown(pid_t pid)
|
|||
int rc = ::disown(pid);
|
||||
HANDLE_SYSCALL_RETURN_VALUE("disown", rc, {});
|
||||
}
|
||||
|
||||
ErrorOr<void> profiling_enable(pid_t pid, u64 event_mask)
|
||||
{
|
||||
int rc = ::profiling_enable(pid, event_mask);
|
||||
HANDLE_SYSCALL_RETURN_VALUE("profiling_enable", rc, {});
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef AK_OS_BSD_GENERIC
|
||||
|
|
|
@ -43,6 +43,7 @@ ErrorOr<void> mount(int source_fd, StringView target, StringView fs_type, int fl
|
|||
ErrorOr<void> umount(StringView mount_point);
|
||||
ErrorOr<long> ptrace(int request, pid_t tid, void* address, void* data);
|
||||
ErrorOr<void> disown(pid_t pid);
|
||||
ErrorOr<void> profiling_enable(pid_t, u64 event_mask);
|
||||
#endif
|
||||
|
||||
#ifndef AK_OS_BSD_GENERIC
|
||||
|
|
Loading…
Reference in a new issue