diff mbox series

[21/23] libtracefs: Also clear max_graph_depth on reset

Message ID 20231228203714.53294-22-rostedt@goodmis.org (mailing list archive)
State Superseded
Headers show
Series libtracefs: Several updates | expand

Commit Message

Steven Rostedt Dec. 28, 2023, 8:35 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Clear the "max_graph_depth" file on tracefs_instance_reset()

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 src/tracefs-instance.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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);