* [PATCH] trace-cmd: Do not load ftrace function event plugins if plugins are disabled
@ 2021-02-04 10:52 Tzvetomir Stoyanov (VMware)
0 siblings, 0 replies; only message in thread
From: Tzvetomir Stoyanov (VMware) @ 2021-02-04 10:52 UTC (permalink / raw)
To: rostedt; +Cc: linux-trace-devel, douglas.raillard
If plugin loading is disabled with trace-cmd report options '-L' or '-N',
do not load ftrace function event plugins as well.
Reported-by: Douglas RAILLARD <douglas.raillard@arm.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=211255
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
---
lib/trace-cmd/trace-input.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c
index 7d28254e..89e936d3 100644
--- a/lib/trace-cmd/trace-input.c
+++ b/lib/trace-cmd/trace-input.c
@@ -3128,7 +3128,8 @@ struct tracecmd_input *tracecmd_alloc_fd(int fd)
goto failed_read;
/* register default ftrace functions first */
- tracecmd_ftrace_overrides(handle, &handle->finfo);
+ if (!tracecmd_disable_plugins && !tracecmd_disable_sys_plugins)
+ tracecmd_ftrace_overrides(handle, &handle->finfo);
handle->plugin_list = trace_load_plugins(handle->pevent);
--
2.29.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-04 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 10:52 [PATCH] trace-cmd: Do not load ftrace function event plugins if plugins are disabled Tzvetomir Stoyanov (VMware)
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).