Skip to contentSkip to conversation

trace-cmd stat: Add some missing status

PATCH New Steven Rostedt 1 participant 4 messages Jun 8, 2022

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 4c3dc6494922..4250f46a32d5 100644
@@ -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
#2 lore raw

PATCH 2/3 trace-cmd stat: Show PIDs in set_ftrace_notrace_pid

In reply to Steven Rostedt

From: "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
index 4250f46a32d5..285960de6e0a 100644
@@ -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
#3 lore raw

PATCH 3/3 trace-cmd stat: List synthetic events in the system

In reply to Steven Rostedt

From: "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
index 285960de6e0a..391a05ffcec9 100644
@@ -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