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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux