perf: ftrace: Add set_tracing_options() to set all trace options
authorChangbin Du <changbin.du@gmail.com>
Sat, 8 Aug 2020 02:31:40 +0000 (10:31 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Aug 2020 12:36:45 +0000 (09:36 -0300)
commit3c4dc21b75a74d4a8458624649a3e09af399a384
tree7d571444f033173db545cb53edba9e1c7f2ddb85
parent42145d71ddf369a536940a1b0d63b9aef6468516
perf: ftrace: Add set_tracing_options() to set all trace options

Now the __cmd_ftrace() becomes a bit long. This moves the trace option
setting code to a separate function set_tracing_options().

Suggested-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: http://lore.kernel.org/lkml/20200808023141.14227-18-changbin.du@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-ftrace.c