mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 00:54:41 +08:00
a80abe2a9a
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>
11 lines
231 B
C
11 lines
231 B
C
#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 |