[PATCH] trace-cmd list: Show parameters of all functions if specified
Steven Rostedt <[email protected]> Thu, 5 Feb 2026 10:52:49 -0500
| Newsgroups | org.kernel.vger.linux-trace-devel |
|---|---|
| Message-ID | <[email protected]> |
From: "Steven Rostedt (Google)" <[email protected]> Currently "trace-cmd list --proto -f" just dumps the functions without showing the arguments for them. That's because if "-f" is used without a parameter the code just dumps the contents of "available_filter_functions". Have it still show the parameters if --proto is specified with just "-f". Signed-off-by: Steven Rostedt (Google) <[email protected]> --- tracecmd/trace-list.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tracecmd/trace-list.c b/tracecmd/trace-list.c index da2604ed1b2e..21e911999125 100644 --- a/tracecmd/trace-list.c +++ b/tracecmd/trace-list.c @@ -529,8 +529,11 @@ static void show_functions(const char *funcre, int params) int i; if (!funcre) { - show_file("available_filter_functions"); - return; + if (!params) { + show_file("available_filter_functions"); + return; + } + funcre = "^.*"; } trace_seq_init(&s); -- 2.51.0