diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 16:44:58 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 16:44:58 +0200 |
commit | 25ce4bb8c50513e922da2709fedc9db112452fbc (patch) | |
tree | 3c19f48f74de6ed113f272f23a4e26cbb69b03b9 /tools/perf/util/config.h | |
parent | perf tools: Replace error() with pr_err() (diff) | |
download | linux-25ce4bb8c50513e922da2709fedc9db112452fbc.tar.xz linux-25ce4bb8c50513e922da2709fedc9db112452fbc.zip |
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 1a59a6b43f8b..b6bb11f3f165 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); |