From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> Clear the "max_graph_depth" file on tracefs_instance_reset() Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- src/tracefs-instance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tracefs-instance.c b/src/tracefs-instance.c index 8d9dd0e21498..b94630a324a1 100644 --- a/src/tracefs-instance.c +++ b/src/tracefs-instance.c @@ -1490,6 +1490,7 @@ void tracefs_instance_reset(struct tracefs_instance *instance) tracefs_tracer_clear(instance); tracefs_instance_file_write(instance, "events/enable", "0"); tracefs_instance_file_write(instance, "set_ftrace_pid", ""); + tracefs_instance_file_write(instance, "max_graph_depth", "0"); tracefs_instance_file_clear(instance, "trace"); systems = tracefs_event_systems(NULL); -- 2.42.0