]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:58:29 +0000 (09:58 +0200)
commitbd3183508842acd156d17485bb13649585c05164
tree86dc8bbb7ba8133904a2a30f6d2ed1997f03f197
parent41e4f3b6254694628e21bc62da47e83578870200
perf intel-pt: Fix system_wide dummy event for hybrid

commit 6cef7dab3e2e5cb23a13569c3880c0532326748c upstream.

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: 7d189cadbeebc778 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/perf/arch/x86/util/intel-pt.c