mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:02:44 +00:00 
			
		
		
		
	LibCore: Add syscall wrapper for profiling_enable()
This commit is contained in:
		
							parent
							
								
									4dc23c9b24
								
							
						
					
					
						commit
						c6a743f22c
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -155,6 +155,12 @@ ErrorOr<void> disown(pid_t pid) | ||||||
|     int rc = ::disown(pid); |     int rc = ::disown(pid); | ||||||
|     HANDLE_SYSCALL_RETURN_VALUE("disown", rc, {}); |     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 | #endif | ||||||
| 
 | 
 | ||||||
| #ifndef AK_OS_BSD_GENERIC | #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<void> umount(StringView mount_point); | ||||||
| ErrorOr<long> ptrace(int request, pid_t tid, void* address, void* data); | ErrorOr<long> ptrace(int request, pid_t tid, void* address, void* data); | ||||||
| ErrorOr<void> disown(pid_t pid); | ErrorOr<void> disown(pid_t pid); | ||||||
|  | ErrorOr<void> profiling_enable(pid_t, u64 event_mask); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #ifndef AK_OS_BSD_GENERIC | #ifndef AK_OS_BSD_GENERIC | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 rvictorr
						rvictorr