Skip to contentSkip to conversation

perf arm-spe: augment the data source type with neoverse_spe list

PATCH Applied Jing Zhang 4 participants 4 messages Sep 26, 2022 – Sep 28, 2022

Subsystems (2)
lore
Share & tools
lore

Jing Zhang

author
#0 lore raw

PATCH 1/1 perf arm-spe: augment the data source type with neoverse_spe list

When synthesizing event with SPE data source, commit 4e6430cbb1a9("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 4e6430cbb1a9("perf arm-spe: Use SPE data source for neoverse cores")
---
 tools/perf/util/arm-spe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/arm-spe.c +1 -1
index 22dcfe0..906476a 100644
@@ -498,7 +498,7 @@ static void arm_spe__synth_data_source_generic(const struct arm_spe_record *reco
 static u64 arm_spe__synth_data_source(const struct arm_spe_record *record, u64 midr)
 {
 	union perf_mem_data_src	data_src = { 0 };
-	bool is_neoverse = is_midr_in_range(midr, neoverse_spe);
+	bool is_neoverse = is_midr_in_range_list(midr, neoverse_spe);
 
 	if (record->op == ARM_SPE_LD)
 		data_src.mem_op = PERF_MEM_OP_LOAD;
Signature · 7 lines
1.8.3.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines

When synthesizing event with SPE data source, commit 4e6430cbb1a9("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 4e6430cbb1a9("perf arm-spe: Use SPE data source for neoverse cores")

Thanks for catching this, you're absolutely right.

Ali

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Reviewed-by
#2 lore raw
Quoted 9 lines · Ali Saidi
Quoted 9 lines

When synthesizing event with SPE data source, commit 4e6430cbb1a9("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.

Quoted 6 lines
Quoted 2 lines
Fixes 4e6430cbb1a9("perf arm-spe: Use SPE data source for neoverse cores")

Thanks for catching this, you're absolutely right.

It's also good for me:

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer Applied
#3 lore raw

Em Mon, Sep 26, 2022 at 11:00:31PM +0800, Leo Yan escreveu:

Quoted 13 lines · Ali Saidi
Quoted 12 lines
Quoted 11 lines

When synthesizing event with SPE data source, commit 4e6430cbb1a9("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 4e6430cbb1a9("perf arm-spe: Use SPE data source for neoverse cores")
Quoted 6 lines
Quoted 3 lines

Thanks for catching this, you're absolutely right.

It's also good for me:

Thanks, applied.

- Arnaldo