mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +00:00 
			
		
		
		
	Kernel+LibC: Add support for filtering profiling events
This adds the -t command-line argument for the profile tool. Using this argument you can filter which event types you want in your profile.
This commit is contained in:
		
							parent
							
								
									8b2ace0326
								
							
						
					
					
						commit
						572bbf28cc
					
				
					 10 changed files with 72 additions and 33 deletions
				
			
		|  | @ -280,7 +280,7 @@ bool generate_profile(pid_t& pid) | |||
|         process_name = "(unknown)"; | ||||
|     } | ||||
| 
 | ||||
|     if (profiling_enable(pid) < 0) { | ||||
|     if (profiling_enable(pid, PERF_EVENT_MASK_ALL) < 0) { | ||||
|         int saved_errno = errno; | ||||
|         GUI::MessageBox::show(nullptr, String::formatted("Unable to profile process {}({}): {}", process_name, pid, strerror(saved_errno)), "Profiler", GUI::MessageBox::Type::Error); | ||||
|         return false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gunnar Beutner
						Gunnar Beutner