diff mbox series

[1/4] trace-cmd show: Re-arrange the enum long option values

Message ID 20231229031907.69432-2-rostedt@goodmis.org (mailing list archive)
State Accepted
Commit 5b90189acd7be277c2aaa4dfd2945d23be7a3025
Headers show
Series trace-cmd: Add ways to read more tracefs files | expand

Commit Message

Steven Rostedt Dec. 29, 2023, 3:16 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

To simplify adding enums to trace-cmd show, re-arrange the enum values. They
can be larger than 255 as well.

No functional changes.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 tracecmd/trace-show.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/tracecmd/trace-show.c b/tracecmd/trace-show.c
index eb3285277fe1..796c587c0cd0 100644
--- a/tracecmd/trace-show.c
+++ b/tracecmd/trace-show.c
@@ -11,16 +11,16 @@ 
 #include "trace-local.h"
 
 enum {
-	OPT_tracing_on			= 255,
-	OPT_current_tracer		= 254,
-	OPT_buffer_size_kb		= 253,
-	OPT_buffer_total_size_kb	= 252,
-	OPT_ftrace_filter		= 251,
-	OPT_ftrace_notrace		= 250,
-	OPT_ftrace_pid			= 249,
-	OPT_graph_function		= 248,
-	OPT_graph_notrace		= 247,
-	OPT_cpumask			= 246,
+	OPT_cpumask			= 240,
+	OPT_graph_notrace,
+	OPT_graph_function,
+	OPT_ftrace_pid,
+	OPT_ftrace_notrace,
+	OPT_ftrace_filter,
+	OPT_buffer_total_size_kb,
+	OPT_buffer_size_kb,
+	OPT_current_tracer,
+	OPT_tracing_on,
 };
 
 void trace_show(int argc, char **argv)