trace-cmd stat: Add some missing status
cover trace-cmd stat: Add some missing status
From: "Steven Rostedt (Google)" <[email protected]>
Add to trace-cmd stat the followin missing items:
- set_event_notrace_pid
- set_ftrace_notrace_pid
- synthetic_events
Steven Rostedt (Google) (3):
trace-cmd stat: Show set_event_notrace_pid entries trace-cmd stat: Show PIDs in set_ftrace_notrace_pid trace-cmd stat: List synthetic events in the system
tracecmd/trace-stat.c | 9 +++++++++ 1 file changed, 9 insertions(+)
Signature · 1 line
2.35.1
PATCH 1/3 trace-cmd stat: Show set_event_notrace_pid entries
From: "Steven Rostedt (Google)" <[email protected]>
Have trace-cmd stat list the PIDs that are in the set_event_notrace_pid.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=208813
--- tracecmd/trace-stat.c | 1 + 1 file changed, 1 insertion(+)
tracecmd/trace-stat.c +1 -0
@@ -860,6 +860,7 @@ static void stat_instance(struct buffer_instance *instance, bool opt)report_kprobes (instance);report_uprobes (instance);report_file (instance,"set_event_pid" ,"" ,"Filtered event PIDs:\n" ); +report_file (instance,"set_event_notrace_pid" ,"" ,"Filtered notrace event PIDs:\n" );report_file (instance,"set_ftrace_pid" ,"no pid" ,"Filtered function tracer PIDs:\n" );if (opt) {
Signature · 1 line
2.35.1
PATCH 2/3 trace-cmd stat: Show PIDs in set_ftrace_notrace_pid
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
List the PIDs that are not to be traced by the function tracers that are listed in the set_ftrace_notrace_pid.
--- tracecmd/trace-stat.c | 2 ++ 1 file changed, 2 insertions(+)
tracecmd/trace-stat.c +2 -0
@@ -863,6 +863,8 @@ static void stat_instance(struct buffer_instance *instance, bool opt)report_file (instance,"set_event_notrace_pid" ,"" ,"Filtered notrace event PIDs:\n" );report_file (instance,"set_ftrace_pid" ,"no pid" ,"Filtered function tracer PIDs:\n" ); +report_file (instance,"set_ftrace_notrace_pid" ,"no pid" , +"Filtered function tracer notrace PIDs:\n" );if (opt) {printf ("\nOptions:\n" );show_options (" " , instance);
Signature · 1 line
2.35.1
PATCH 3/3 trace-cmd stat: List synthetic events in the system
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
List the synthetic events that are defined.
--- tracecmd/trace-stat.c | 6 ++++++ 1 file changed, 6 insertions(+)
tracecmd/trace-stat.c +6 -0
@@ -818,6 +818,11 @@ static void report_uprobes(struct buffer_instance *instance)report_probes (instance,"uprobe_events" ,"Uprobe events" ); } +static void report_synthetic (struct buffer_instance *instance) +{ +report_probes (instance,"synthetic_events" ,"Synthetic events" ); +} +static void report_traceon (struct buffer_instance *instance) {char *str;
@@ -859,6 +864,7 @@ static void stat_instance(struct buffer_instance *instance, bool opt)report_file (instance,"tracing_max_latency" ,"0" ,"Max Latency: " );report_kprobes (instance);report_uprobes (instance); +report_synthetic (instance);report_file (instance,"set_event_pid" ,"" ,"Filtered event PIDs:\n" );report_file (instance,"set_event_notrace_pid" ,"" ,"Filtered notrace event PIDs:\n" ); report_file(instance, "set_ftrace_pid", "no pid",
Signature · 1 line
2.35.1