perf tools: Add general function to parse sublevel options
authorChangbin Du <changbin.du@gmail.com>
Sat, 8 Aug 2020 02:31:30 +0000 (10:31 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Aug 2020 12:15:47 +0000 (09:15 -0300)
commita80abe2a9a8a420b4dd88713ba0ad3c163e7a79b
tree844592e2162a0b8d0a6a2165b88d28788d77d091
parent5b34747238686021a39495f7ae0bfadc27fe3e83
perf tools: Add general function to parse sublevel options

This factors out a general function perf_parse_sublevel_options() to
parse sublevel options. The 'sublevel' options is something like the
'--debug' options which allow more sublevel options.

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-8-changbin.du@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/Build
tools/perf/util/debug.c
tools/perf/util/parse-sublevel-options.c [new file with mode: 0644]
tools/perf/util/parse-sublevel-options.h [new file with mode: 0644]