From 43baa672413baa5bd19bc95af710e5dc93cdd420 Mon Sep 17 00:00:00 2001 From: gubin Date: Tue, 29 Oct 2024 23:21:10 +0800 Subject: [PATCH 15/20] cleanup: remove unused variable childPidList The variable 'childPidList' was declared but never used. It has been removed to simplify the code and improve readability. Signed-off-by: gubin --- pmu/dummy_event.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/pmu/dummy_event.cpp b/pmu/dummy_event.cpp index a058a24..723a753 100644 --- a/pmu/dummy_event.cpp +++ b/pmu/dummy_event.cpp @@ -140,7 +140,6 @@ namespace KUNPENG_PMU { uint8_t* ringBuf = (uint8_t*) (mapPage) + PAGE_SIZE; uint64_t dataHead = mapPage->data_head; uint64_t dataTail = mapPage->data_tail; - std::vector childPidList; while (dataTail < dataHead) { uint64_t off = dataTail % mapPage->data_size; auto* header = (struct perf_event_header*) (ringBuf + off); -- 2.43.0