commit | 9db0e3635fb35b6695275774ab909c51221b66ad | [log] [tgz] |
---|---|---|
author | Arnaldo Carvalho de Melo <acme@redhat.com> | Mon Sep 30 11:48:32 2019 -0300 |
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | Mon Sep 30 17:29:57 2019 -0300 |
tree | 6598a9e707013cd46d88519d10b584c802a953f1 | |
parent | f67001a4a08eb124197ed4376941e1da9cf94b42 [diff] |
perf evsel: Fall back to global 'perf_env' in perf_evsel__env() I.e. if evsel->evlist or evsel->evlist->env isn't set, return the environment for the running machine, as that would be set if reading from a perf.data file. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-uqq4grmhbi12rwb0lfpo6lfu@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>