diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-11-27 17:45:49 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-12-17 20:54:02 +0300 |
commit | 804234f27180dcf9a25cb98a88d5212f65b7f3fd (patch) | |
tree | 7db3f0077f8fd3ec0f437509d56507af8cf7a5ad /tools/perf/util/stat-shadow.c | |
parent | b18e088825883bcb8dc4c4a641494049cf8ccec3 (diff) | |
download | linux-804234f27180dcf9a25cb98a88d5212f65b7f3fd.tar.xz |
perf env: Also consider env->arch == NULL as local operation
We'll set a new machine field based on env->arch, which for live mode,
like with 'perf top' means we need to use uname() to figure the name of
the arch, fix perf_env__arch() to consider both (env == NULL) and
(env->arch == NULL) as local operation.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: stable@vger.kernel.org # 4.19
Link: https://lkml.kernel.org/n/tip-vcz4ufzdon7cwy8dm2ua53xk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/stat-shadow.c')
0 files changed, 0 insertions, 0 deletions