summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/config.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2021-01-02 23:04:23 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-01-20 18:34:20 +0100
commitf5f03e19ce14fc31aa8668f9c511ce6be0ca0bb7 (patch)
treee93c3abcb362764bf1af4b727103009993a9574d /tools/perf/util/config.h
parentperf debug: Add debug_set_display_time function (diff)
downloadlinux-f5f03e19ce14fc31aa8668f9c511ce6be0ca0bb7.tar.xz
linux-f5f03e19ce14fc31aa8668f9c511ce6be0ca0bb7.zip
perf config: Add perf_home_perfconfig function
Factor out the perf_home_perfconfig, that looks for .perfconfig in home directory including check for PERF_CONFIG_NOGLOBAL and for proper permission. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexei Budankov <abudankov@huawei.com> Cc: Ian Rogers <irogers@google.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lore.kernel.org/lkml/20210102220441.794923-5-jolsa@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/config.h b/tools/perf/util/config.h
index ee5a242446e9..d6c4f80f367c 100644
--- a/tools/perf/util/config.h
+++ b/tools/perf/util/config.h
@@ -37,6 +37,7 @@ 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);
+const char *perf_home_perfconfig(void);
struct perf_config_set *perf_config_set__new(void);
struct perf_config_set *perf_config_set__load_file(const char *file);