mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-03 23:41:21 +00:00 
			
		
		
		
	trace/ftrace: Support the 'function' tracer
This tracer is similar to the 'function_graph' tracer in that it helps us trace function calls. It is however more lightweight, and only traces functions entries (along with the caller of the function). It can also happen that the kernel has support for the 'function' tracer but not for 'function_graph' (the opposite cannot be true, however).
This commit is contained in:
		
				
					committed by
					
						
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							e7bd2a5b22
						
					
				
				
					commit
					cf26dee308
				
			@@ -184,6 +184,12 @@ class FtraceCollector(TraceCollector):
 | 
			
		||||
                # times.
 | 
			
		||||
                if not selected_events:
 | 
			
		||||
                    selected_events = ['sched_wakeup_new']
 | 
			
		||||
 | 
			
		||||
            # Function tracing
 | 
			
		||||
            elif self.tracer == 'function':
 | 
			
		||||
                self.function_string = _build_graph_functions(selected_functions, False)
 | 
			
		||||
 | 
			
		||||
            # Function graphing
 | 
			
		||||
            elif self.tracer == 'function_graph':
 | 
			
		||||
                self.function_string = _build_graph_functions(selected_functions, trace_children_functions)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user