libkperf/0015-cleanup-remove-unused-variable-childPidList.patch
eho f96a0df41b udpate version to 1.1-2
(cherry picked from commit 5dacbbf2cd2389ee8349e8afa1f12551404a47f5)
2024-11-19 21:14:36 +08:00

29 lines
1.0 KiB
Diff

From 43baa672413baa5bd19bc95af710e5dc93cdd420 Mon Sep 17 00:00:00 2001
From: gubin <gubin_yewu@cmss.chinamobile.com>
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 <gubin_yewu@cmss.chinamobile.com>
---
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<pid_t> childPidList;
while (dataTail < dataHead) {
uint64_t off = dataTail % mapPage->data_size;
auto* header = (struct perf_event_header*) (ringBuf + off);
--
2.43.0