Skip to content

Commit 74a61d5

Browse files
Jing Zhangacmel
authored andcommitted
perf arm-spe: augment the data source type with neoverse_spe list
When synthesizing event with SPE data source, commit 4e6430c("perf arm-spe: Use SPE data source for neoverse cores") augment the type with source information by MIDR. However, is_midr_in_range only compares the first entry in neoverse_spe. Change is_midr_in_range to is_midr_in_range_list to traverse the neoverse_spe array so that all neoverse cores synthesize event with data source packet. Fixes: 4e6430c ("perf arm-spe: Use SPE data source for neoverse cores") Reviewed-by: Ali Saidi <[email protected]> Reviewed-by: Leo Yan <[email protected]> Signed-off-by: Jing Zhang <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ali Saidi <[email protected]> Cc: German Gomez <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Garry <[email protected]> Cc: [email protected] Cc: Mark Rutland <[email protected]> Cc: Mike Leach <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Shuai Xue <[email protected]> Cc: Timothy Hayes <[email protected]> Cc: Will Deacon <[email protected]> Cc: Zhuo Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 5064424 commit 74a61d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/arm-spe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static void arm_spe__synth_data_source_generic(const struct arm_spe_record *reco
498498
static u64 arm_spe__synth_data_source(const struct arm_spe_record *record, u64 midr)
499499
{
500500
union perf_mem_data_src data_src = { 0 };
501-
bool is_neoverse = is_midr_in_range(midr, neoverse_spe);
501+
bool is_neoverse = is_midr_in_range_list(midr, neoverse_spe);
502502

503503
if (record->op == ARM_SPE_LD)
504504
data_src.mem_op = PERF_MEM_OP_LOAD;

0 commit comments

Comments
 (0)