]> git.baikalelectronics.ru Git - kernel.git/commit
perf env: Add routine to read the env->cpuid from the running machine
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Sep 2019 14:50:15 +0000 (11:50 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Oct 2019 15:22:17 +0000 (12:22 -0300)
commit8ff109ee12656caf45c007c8d17b8141fd82d83d
tree4755fd25c223485e743ee9d4150522616348f282
parent8f1809d267e9499434dcc5a6efdbeb97347107cc
perf env: Add routine to read the env->cpuid from the running machine

In 'perf top' we use that cpuid when initializing the per arch
annotation init routines (e.g. x86__annotate_init()) and in that case
(live mode, 'perf top') we need to obtain it from the running machine,
not from a perf.data file header.

Provide a means to do that. Will be used by 'perf top' in a followup
patch.

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-h2wb3sx7u7znx6lqfezrh7ca@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/env.c
tools/perf/util/env.h