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

Steven Rostedt <[email protected]> Mon, 7 Apr 2025 18:02:46 -0400
Newsgroups org.kernel.vger.linux-trace-devel
Message-ID <[email protected]>
From: "Steven Rostedt (Google)" <[email protected]>

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) <[email protected]>
---
 tracecmd/trace-cmd.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 	    ;;
-- 
2.47.2