diff mbox series

[v2,20/22] libtracefs: Also clear max_graph_depth on reset

Message ID 20231228215433.54854-21-rostedt@goodmis.org (mailing list archive)
State Accepted
Commit d8726bf6f772407add7ac1cd7eb93d1355b110ed
Headers show
Series libtracefs: Several updates | expand

Commit Message

Steven Rostedt Dec. 28, 2023, 9:52 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);