mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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>
This commit is contained in:
parent
5b34747238
commit
a80abe2a9a
4 changed files with 99 additions and 44 deletions
11
tools/perf/util/parse-sublevel-options.h
Normal file
11
tools/perf/util/parse-sublevel-options.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef _PERF_PARSE_SUBLEVEL_OPTIONS_H
|
||||
#define _PERF_PARSE_SUBLEVEL_OPTIONS_H
|
||||
|
||||
struct sublevel_option {
|
||||
const char *name;
|
||||
int *value_ptr;
|
||||
};
|
||||
|
||||
int perf_parse_sublevel_options(const char *str, struct sublevel_option *opts);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue