LibCore: Add syscall wrapper for profiling_free_buffer()

This commit is contained in:
rvictorr 2022-02-13 00:08:37 +02:00 committed by Andreas Kling
parent 014c0d68c0
commit 73303f0dc1
Notes: sideshowbarker 2024-07-17 18:56:18 +09:00
2 changed files with 7 additions and 0 deletions

View file

@ -167,6 +167,12 @@ ErrorOr<void> profiling_disable(pid_t pid)
int rc = ::profiling_disable(pid);
HANDLE_SYSCALL_RETURN_VALUE("profiling_disable", rc, {});
}
ErrorOr<void> profiling_free_buffer(pid_t pid)
{
int rc = ::profiling_free_buffer(pid);
HANDLE_SYSCALL_RETURN_VALUE("profiling_free_buffer", rc, {});
}
#endif
#ifndef AK_OS_BSD_GENERIC

View file

@ -45,6 +45,7 @@ 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);
ErrorOr<void> profiling_free_buffer(pid_t);
#endif
#ifndef AK_OS_BSD_GENERIC