Skip to content

Commit 7075f3f

Browse files
Leo-Yanarighi
authored andcommitted
perf arm-spe: Remove the unused 'midr' field
The 'midr' field is replaced by the MIDR values stored in metadata (per CPU wise). Remove the 'midr' field as it is no longer used. Signed-off-by: Leo Yan <leo.yan@arm.com> Reviewed-by: James Clark <james.clark@linaro.org> Link: https://lore.kernel.org/r/20241003185322.192357-6-leo.yan@arm.com Signed-off-by: Namhyung Kim <namhyung@kernel.org> (cherry picked from commit 6bcf54c) Signed-off-by: Andrea Righi <arighi@nvidia.com>
1 parent a222cc8 commit 7075f3f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/perf/util/arm-spe.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ struct arm_spe {
4848
struct perf_session *session;
4949
struct machine *machine;
5050
u32 pmu_type;
51-
u64 midr;
5251

5352
struct perf_tsc_conversion tc;
5453

@@ -1432,8 +1431,6 @@ int arm_spe_process_auxtrace_info(union perf_event *event,
14321431
struct perf_record_auxtrace_info *auxtrace_info = &event->auxtrace_info;
14331432
size_t min_sz = ARM_SPE_AUXTRACE_V1_PRIV_SIZE;
14341433
struct perf_record_time_conv *tc = &session->time_conv;
1435-
const char *cpuid = perf_env__cpuid(session->evlist->env);
1436-
u64 midr = strtol(cpuid, NULL, 16);
14371434
struct arm_spe *spe;
14381435
u64 **metadata = NULL;
14391436
u64 metadata_ver;
@@ -1467,7 +1464,6 @@ int arm_spe_process_auxtrace_info(union perf_event *event,
14671464
spe->pmu_type = auxtrace_info->priv[ARM_SPE_PMU_TYPE];
14681465
else
14691466
spe->pmu_type = auxtrace_info->priv[ARM_SPE_PMU_TYPE_V2];
1470-
spe->midr = midr;
14711467
spe->metadata = metadata;
14721468
spe->metadata_ver = metadata_ver;
14731469
spe->metadata_nr_cpu = nr_cpu;

0 commit comments

Comments
 (0)