diff mbox series

trace-cmd: Add trace-cmd set to bash completion (like start)

Message ID 20250407180246.19f53830@gandalf.local.home (mailing list archive)
State Accepted
Commit 9c44659e3253d25a103b88d7c777b78c8df4b3d5
Headers show
Series trace-cmd: Add trace-cmd set to bash completion (like start) | expand

Commit Message

Steven Rostedt April 7, 2025, 10:02 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

The trace-cmd set command is the same as trace-cmd start except that it
doesn't reset tracefs before starting the tracing. Nor does it enable
tracing. But it does pretty much all the other commands.

Have trace-cmd set have the same tab completions as trace-cmd start.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 tracecmd/trace-cmd.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tracecmd/trace-cmd.bash b/tracecmd/trace-cmd.bash
index 01a75578..d7816bcf 100644
--- a/tracecmd/trace-cmd.bash
+++ b/tracecmd/trace-cmd.bash
@@ -348,7 +348,7 @@  _trace_cmd_complete()
 	    __trace_cmd_extract_complete "${prev}" "${cur}" ${words[@]}
 	    return 0
 	    ;;
-	record|stream|start|profile)
+	record|stream|start|set|profile)
 	    __trace_cmd_record_complete "${prev}" "${cur}" ${words[@]}
 	    return 0
 	    ;;