]> git.baikalelectronics.ru Git - kernel.git/commit
perf thread: Add fallback functions for cases where cpumode is insufficient
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 6 Nov 2018 21:07:10 +0000 (23:07 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Dec 2018 17:54:13 +0000 (14:54 -0300)
commit4b632dc3acd41f010dcd4d36f1aa0d4ac785333d
treed9043eaaaafb957bf1c8f4e1c665931fea6f6bda
parent3a8c90aa2f35f0cb5eb8e71cd7990b599d24f1db
perf thread: Add fallback functions for cases where cpumode is insufficient

For branch stacks or branch samples, the sample cpumode might not be
correct because it applies only to the sample 'ip' and not necessary to
'addr' or branch stack addresses. Add fallback functions that can be
used to deal with those cases

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.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: stable@vger.kernel.org # 4.19
Link: http://lkml.kernel.org/r/20181106210712.12098-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/thread.h