]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Fix system_wide dummy event for hybrid
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 12 Oct 2022 08:22:59 +0000 (11:22 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 15 Oct 2022 13:13:16 +0000 (10:13 -0300)
commit7782cdf2b79b00a747d8a98478f79724ffae9e20
tree03b1228d04024437bc0c899a38bb97f888b6c548
parent47286d93af9832fb92b9160794aa367153112f80
perf intel-pt: Fix system_wide dummy event for hybrid

User space tasks can migrate between CPUs, so when tracing selected CPUs,
system-wide sideband is still needed, however evlist->core.has_user_cpus
is not set in the hybrid case, so check the target cpu_list instead.

Fixes: 4788bef75c531450 ("perf intel-pt: Track sideband system-wide when needed")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221012082259.22394-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/intel-pt.c