]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63a441a5afd0e6916ad4f292ef3ee53c69172564
tree7d571444f033173db545cb53edba9e1c7f2ddb85
parentf8be82702123f36fb74a978525b7db2c6c8779e5
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