perf arm-spe: augment the data source type with neoverse_spe list
Subsystems (2)
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.
--- tools/perf/util/arm-spe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/arm-spe.c +1 -1
@@ -498,7 +498,7 @@ static void arm_spe__synth_data_source_generic(const struct arm_spe_record *recostatic 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
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_rangeonly compares the first entry inneoverse_spe.Change
is_midr_in_rangetois_midr_in_range_listto traverse theneoverse_spearray so that all neoverse cores synthesize event with data source packet.Fixes 4e6430cbb1a9("perf arm-spe: Use SPE data source for neoverse cores")Signed-off-by Jing Zhang <[email protected]>
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
Leo Yan
Reviewed-byQuoted 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_rangeonly compares the first entry inneoverse_spe.Change
is_midr_in_rangetois_midr_in_range_listto traverse theneoverse_spearray 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")Signed-off-by Jing Zhang <[email protected]>Thanks for catching this, you're absolutely right.
Reviewed-by Ali Saidi <[email protected]>
It's also good for me:
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
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_rangeonly compares the first entry inneoverse_spe.Change
is_midr_in_rangetois_midr_in_range_listto traverse theneoverse_spearray so that all neoverse cores synthesize event with data source packet.Fixes 4e6430cbb1a9("perf arm-spe: Use SPE data source for neoverse cores")Signed-off-by Jing Zhang <[email protected]>
Quoted 6 lines
Quoted 3 lines
Thanks for catching this, you're absolutely right.
Reviewed-by Ali Saidi <[email protected]>It's also good for me:
Reviewed-by Leo Yan <[email protected]>
Thanks, applied.
- Arnaldo