]> git.baikalelectronics.ru Git - kernel.git/commit
perf config: Honour $PERF_CONFIG env var to specify alternate .perfconfig
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 30 Jul 2019 14:20:55 +0000 (11:20 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 12 Aug 2019 19:26:02 +0000 (16:26 -0300)
commitf869b87870b3f9875563b48722d0bf4c8be365dc
treea9f5a52892c20035e20ad3b7a04414d7bed9e889
parent46df4beb5625bee4d7965f7c78a70f7c420ab82b
perf config: Honour $PERF_CONFIG env var to specify alternate .perfconfig

We had this comment in Documentation/perf_counter/config.c, i.e. since
when we got this from the git sources, but never really did that
getenv("PERF_CONFIG"), do it now as I need to disable whatever
~/.perfconfig root has so that tests parsing tool output are done for
the expected default output or that we specify an alternate config file
that when read will make the tools produce expected output.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Taeung Song <treeze.taeung@gmail.com>
Fixes: cac2d9a09b3a ("perf_counter tools: add in basic glue from Git")
Link: https://lkml.kernel.org/n/tip-jo209zac9rut0dz1rqvbdlgm@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/perf.c