Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf config: Make perf_config_global() global

Make perf_config_global global, it will be used outside the config.c
object in the following patches.

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-7-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
e8b2db07 b2946282

+2 -1
+1 -1
tools/perf/util/config.c
··· 526 526 return !perf_env_bool("PERF_CONFIG_NOSYSTEM", 0); 527 527 } 528 528 529 - static int perf_config_global(void) 529 + int perf_config_global(void) 530 530 { 531 531 return !perf_env_bool("PERF_CONFIG_NOGLOBAL", 0); 532 532 }
+1
tools/perf/util/config.h
··· 39 39 const char *perf_etc_perfconfig(void); 40 40 const char *perf_home_perfconfig(void); 41 41 int perf_config_system(void); 42 + int perf_config_global(void); 42 43 43 44 struct perf_config_set *perf_config_set__new(void); 44 45 struct perf_config_set *perf_config_set__load_file(const char *file);