Skip to contentSkip to conversation

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

PATCH New Steven Rostedt 1 participant 1 message Apr 7, 2025

lore
Share & tools
lore
#0 lore raw

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

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.

---
 tracecmd/trace-cmd.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tracecmd/trace-cmd.bash +1 -1
index 01a75578..d7816bcf 100644
@@ -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
 	    ;;
Signature · 1 line
2.47.2