[PATCH v1 6/9] perf hisi-ptt: Remove the unused 'pmu_type' field

Leo Yan leo.yan at arm.com
Tue Aug 6 13:41:27 PDT 2024


The 'pmu_type' field is not used, remove it.

Signed-off-by: Leo Yan <leo.yan at arm.com>
---
 tools/perf/util/hisi-ptt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/perf/util/hisi-ptt.c b/tools/perf/util/hisi-ptt.c
index 57dd98afb0d2..859e1bc38e12 100644
--- a/tools/perf/util/hisi-ptt.c
+++ b/tools/perf/util/hisi-ptt.c
@@ -32,7 +32,6 @@ struct hisi_ptt {
 	u32 auxtrace_type;
 	struct perf_session *session;
 	struct machine *machine;
-	u32 pmu_type;
 };
 
 static enum hisi_ptt_pkt_type hisi_ptt_check_packet_type(unsigned char *buf)
@@ -166,7 +165,6 @@ int hisi_ptt_process_auxtrace_info(union perf_event *event,
 	ptt->session = session;
 	ptt->machine = &session->machines.host; /* No kvm support */
 	ptt->auxtrace_type = auxtrace_info->type;
-	ptt->pmu_type = auxtrace_info->priv[0];
 
 	ptt->auxtrace.process_event = hisi_ptt_process_event;
 	ptt->auxtrace.process_auxtrace_event = hisi_ptt_process_auxtrace_event;
-- 
2.34.1




More information about the linux-arm-kernel mailing list