[PATCH 2/2] trace-cmd: Print configured filtered PIDs in trace-cmd stat command

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

 



Print information of currently configured filtered event PIDs and
filtered function tracer PIDs in trace-cmd stat command. This information
is part of the ftrace configuration and should be displayed by the stat command.

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx>
---
 tracecmd/trace-stat.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c
index 2e3d83c3..e9369842 100644
--- a/tracecmd/trace-stat.c
+++ b/tracecmd/trace-stat.c
@@ -900,6 +900,9 @@ static void stat_instance(struct buffer_instance *instance)
 	report_file(instance, "tracing_max_latency", "0", "Max Latency: ");
 	report_kprobes(instance);
 	report_uprobes(instance);
+	report_file(instance, "set_event_pid", "", "Filtered event PIDs:\n");
+	report_file(instance, "set_ftrace_pid", "no pid",
+		    "Filtered function tracer PIDs:\n");
 	report_traceon(instance);
 	report_file(instance, "error_log", "", "Error log:\n");
 }
-- 
2.25.3




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

  Powered by Linux