mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibCore: Add syscall wrapper for profiling_disable()
This commit is contained in:
parent
c6a743f22c
commit
014c0d68c0
Notes:
sideshowbarker
2024-07-17 18:56:22 +09:00
Author: https://github.com/rvictorr Commit: https://github.com/SerenityOS/serenity/commit/014c0d68c0 Pull-request: https://github.com/SerenityOS/serenity/pull/12469 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/AtkinsSJ
2 changed files with 7 additions and 0 deletions
|
@ -161,6 +161,12 @@ ErrorOr<void> profiling_enable(pid_t pid, u64 event_mask)
|
|||
int rc = ::profiling_enable(pid, event_mask);
|
||||
HANDLE_SYSCALL_RETURN_VALUE("profiling_enable", rc, {});
|
||||
}
|
||||
|
||||
ErrorOr<void> profiling_disable(pid_t pid)
|
||||
{
|
||||
int rc = ::profiling_disable(pid);
|
||||
HANDLE_SYSCALL_RETURN_VALUE("profiling_disable", rc, {});
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef AK_OS_BSD_GENERIC
|
||||
|
|
|
@ -44,6 +44,7 @@ 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);
|
||||
ErrorOr<void> profiling_disable(pid_t);
|
||||
#endif
|
||||
|
||||
#ifndef AK_OS_BSD_GENERIC
|
||||
|
|
Loading…
Reference in a new issue