libkperf/0008-.patch
2024-11-19 20:29:04 +08:00

57 lines
2.3 KiB
Diff

From 4e13130c164640cc02470074cb816047159159d2 Mon Sep 17 00:00:00 2001
From: lixiang <lixiang_yewu@cmss.chinamobile.com>
Date: Tue, 15 Oct 2024 09:20:40 +0800
Subject: [PATCH 08/20] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pmu/CMakeLists.txt | 2 +-
pmu/evt_list.h | 2 +-
python/tests/test_api.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pmu/CMakeLists.txt b/pmu/CMakeLists.txt
index 189e43e..c68bfe0 100644
--- a/pmu/CMakeLists.txt
+++ b/pmu/CMakeLists.txt
@@ -25,7 +25,7 @@ include_directories(${PROJECT_TOP_DIR}/include)
include_directories(${PMU_FILE_DIR}/)
include_directories(${PFM_FILE_DIR})
-# directories for ultilities and symbol resolving
+# directories for utilities and symbol resolving
include_directories(${UTIL_FILE_DIR})
include_directories(${SYMBOL_FILE_DIR})
include_directories(${PMU_DECODER_DIR})
diff --git a/pmu/evt_list.h b/pmu/evt_list.h
index 802e7cf..50b888e 100644
--- a/pmu/evt_list.h
+++ b/pmu/evt_list.h
@@ -131,7 +131,7 @@ struct EventGroupInfo {
// store event group child events state flag info
/* event group child state explain:
* Enumeration variable uncoreState has four state, Initialization is the InitState;
- * sacn the event List, if find the uncore event, the uncoreState is config the high bit set to 1;
+ * scan the event List, if found the uncore event, the uncoreState is configured with the high bit set to 1;
* if find the other event, the uncoreState is config the low bit set to 0.
*/
enum class UncoreState uncoreState;
diff --git a/python/tests/test_api.py b/python/tests/test_api.py
index e62294b..7e32437 100644
--- a/python/tests/test_api.py
+++ b/python/tests/test_api.py
@@ -52,7 +52,7 @@ def TestAPI_SpeInitBusy():
print(f"error number: {kperf.errorno()} error message: {kperf.error()}")
badpd = kperf.open(kperf.PmuTaskType.SPE_SAMPLING, pmu_attr)
if badpd == -1:
- print(f"badpd rror number: {kperf.errorno()} badpd error message: {kperf.error()}")
+ print(f"badpd error number: {kperf.errorno()} badpd error message: {kperf.error()}")
kperf.close(badpd)
def TestAPI_OpenInvalidTaskType():
--
2.43.0