diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 11:44:58 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 11:44:58 -0300 |
commit | 25ce4bb8c50513e922da2709fedc9db112452fbc (patch) | |
tree | 3c19f48f74de6ed113f272f23a4e26cbb69b03b9 /tools/perf/util/config.h | |
parent | 62d94b00f80b0ecb7fa9eea0539c59e9f82b0fcd (diff) | |
download | op-kernel-dev-25ce4bb8c50513e922da2709fedc9db112452fbc.zip op-kernel-dev-25ce4bb8c50513e922da2709fedc9db112452fbc.tar.gz |
perf config: Do not die when parsing u64 or int config values
Just warn the user and ignore those values.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-tbf60nj3ierm6hrkhpothymx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/config.h')
-rw-r--r-- | tools/perf/util/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/config.h b/tools/perf/util/config.h index 1a59a6b..b6bb11f 100644 --- a/tools/perf/util/config.h +++ b/tools/perf/util/config.h @@ -27,8 +27,8 @@ extern const char *config_exclusive_filename; typedef int (*config_fn_t)(const char *, const char *, void *); int perf_default_config(const char *, const char *, void *); int perf_config(config_fn_t fn, void *); -int perf_config_int(const char *, const char *); -u64 perf_config_u64(const char *, const char *); +int perf_config_int(int *dest, const char *, const char *); +int perf_config_u64(u64 *dest, const char *, const char *); int perf_config_bool(const char *, const char *); int config_error_nonbool(const char *); const char *perf_etc_perfconfig(void); |