From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> In order to verify the order of the option names in the options_map array, have each name on its own line. This is much easier to see the mapping when compared to the enums in tracefs_options_id that represent them. No function changes. Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- src/tracefs-tools.c | 51 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/src/tracefs-tools.c b/src/tracefs-tools.c index 7f69cde93115..e2dfc7b8acff 100644 --- a/src/tracefs-tools.c +++ b/src/tracefs-tools.c @@ -20,15 +20,48 @@ #define TRACE_CTRL "tracing_on" static const char * const options_map[] = { - "unknown", "annotate", "bin", "blk_cgname", "blk_cgroup", "blk_classic", - "block", "context-info", "disable_on_free", "display-graph", "event-fork", - "funcgraph-abstime", "funcgraph-cpu", "funcgraph-duration", "funcgraph-irqs", - "funcgraph-overhead", "funcgraph-overrun", "funcgraph-proc", "funcgraph-tail", - "func_stack_trace", "function-fork", "function-trace", "graph-time", "hex", - "irq-info", "latency-format", "markers", "overwrite", "pause-on-trace", - "printk-msg-only", "print-parent", "raw", "record-cmd", "record-tgid", - "sleep-time", "stacktrace", "sym-addr", "sym-offset", "sym-userobj", - "trace_printk", "userstacktrace", "verbose" }; + "unknown", + "annotate", + "bin", + "blk_cgname", + "blk_cgroup", + "blk_classic", + "block", + "context-info", + "disable_on_free", + "display-graph", + "event-fork", + "funcgraph-abstime", + "funcgraph-cpu", + "funcgraph-duration", + "funcgraph-irqs", + "funcgraph-overhead", + "funcgraph-overrun", + "funcgraph-proc", + "funcgraph-tail", + "func_stack_trace", + "function-fork", + "function-trace", + "graph-time", + "hex", + "irq-info", + "latency-format", + "markers", + "overwrite", + "pause-on-trace", + "printk-msg-only", + "print-parent", + "raw", + "record-cmd", + "record-tgid", + "sleep-time", + "stacktrace", + "sym-addr", + "sym-offset", + "sym-userobj", + "trace_printk", + "userstacktrace", + "verbose" }; static int trace_on_off(int fd, bool on) { -- 2.29.2