* [PATCH 0/3] trace-cmd stat: Add some missing status
@ 2022-06-08 16:31 Steven Rostedt
2022-06-08 16:31 ` [PATCH 1/3] trace-cmd stat: Show set_event_notrace_pid entries Steven Rostedt
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Steven Rostedt @ 2022-06-08 16:31 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Steven Rostedt (Google)
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
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(+)
--
2.35.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] trace-cmd stat: Show set_event_notrace_pid entries
2022-06-08 16:31 [PATCH 0/3] trace-cmd stat: Add some missing status Steven Rostedt
@ 2022-06-08 16:31 ` Steven Rostedt
2022-06-08 16:31 ` [PATCH 2/3] trace-cmd stat: Show PIDs in set_ftrace_notrace_pid Steven Rostedt
2022-06-08 16:31 ` [PATCH 3/3] trace-cmd stat: List synthetic events in the system Steven Rostedt
2 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2022-06-08 16:31 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Steven Rostedt (Google)
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
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
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
tracecmd/trace-stat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c
index 4c3dc6494922..4250f46a32d5 100644
--- a/tracecmd/trace-stat.c
+++ b/tracecmd/trace-stat.c
@@ -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) {
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] trace-cmd stat: Show PIDs in set_ftrace_notrace_pid
2022-06-08 16:31 [PATCH 0/3] trace-cmd stat: Add some missing status Steven Rostedt
2022-06-08 16:31 ` [PATCH 1/3] trace-cmd stat: Show set_event_notrace_pid entries Steven Rostedt
@ 2022-06-08 16:31 ` Steven Rostedt
2022-06-08 16:31 ` [PATCH 3/3] trace-cmd stat: List synthetic events in the system Steven Rostedt
2 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2022-06-08 16:31 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Steven Rostedt (Google)
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
List the PIDs that are not to be traced by the function tracers that are
listed in the set_ftrace_notrace_pid.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
tracecmd/trace-stat.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c
index 4250f46a32d5..285960de6e0a 100644
--- a/tracecmd/trace-stat.c
+++ b/tracecmd/trace-stat.c
@@ -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);
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] trace-cmd stat: List synthetic events in the system
2022-06-08 16:31 [PATCH 0/3] trace-cmd stat: Add some missing status Steven Rostedt
2022-06-08 16:31 ` [PATCH 1/3] trace-cmd stat: Show set_event_notrace_pid entries Steven Rostedt
2022-06-08 16:31 ` [PATCH 2/3] trace-cmd stat: Show PIDs in set_ftrace_notrace_pid Steven Rostedt
@ 2022-06-08 16:31 ` Steven Rostedt
2 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2022-06-08 16:31 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Steven Rostedt (Google)
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
List the synthetic events that are defined.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
tracecmd/trace-stat.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c
index 285960de6e0a..391a05ffcec9 100644
--- a/tracecmd/trace-stat.c
+++ b/tracecmd/trace-stat.c
@@ -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",
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-08 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 16:31 [PATCH 0/3] trace-cmd stat: Add some missing status Steven Rostedt
2022-06-08 16:31 ` [PATCH 1/3] trace-cmd stat: Show set_event_notrace_pid entries Steven Rostedt
2022-06-08 16:31 ` [PATCH 2/3] trace-cmd stat: Show PIDs in set_ftrace_notrace_pid Steven Rostedt
2022-06-08 16:31 ` [PATCH 3/3] trace-cmd stat: List synthetic events in the system Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).