mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +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:
parent
e7bd2a5b22
commit
cf26dee308
@ -184,6 +184,12 @@ class FtraceCollector(TraceCollector):
|
|||||||
# times.
|
# times.
|
||||||
if not selected_events:
|
if not selected_events:
|
||||||
selected_events = ['sched_wakeup_new']
|
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':
|
elif self.tracer == 'function_graph':
|
||||||
self.function_string = _build_graph_functions(selected_functions, trace_children_functions)
|
self.function_string = _build_graph_functions(selected_functions, trace_children_functions)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user