49 lines
1.2 KiB
Diff
49 lines
1.2 KiB
Diff
From d0e12d3418b1ba52f0dd5e75e94543b6e7322e91 Mon Sep 17 00:00:00 2001
|
|
From: baixu <baixu_yewu@cmss.chinamobile.com>
|
|
Date: Tue, 15 Oct 2024 16:47:07 +0800
|
|
Subject: [PATCH 10/20] fix spelling error
|
|
|
|
---
|
|
include/pcerrc.h | 4 ++--
|
|
python/modules/kperf/perror.py | 2 +-
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/include/pcerrc.h b/include/pcerrc.h
|
|
index 13c04e9..c2dd791 100644
|
|
--- a/include/pcerrc.h
|
|
+++ b/include/pcerrc.h
|
|
@@ -82,7 +82,7 @@ extern "C" {
|
|
|
|
#define UNKNOWN_ERROR 9999
|
|
|
|
-// warnning code
|
|
+// warning code
|
|
#define LIBPERF_WARN_CTXID_LOST 1000
|
|
#define LIBPERF_WARN_FAIL_GET_PROC 1001
|
|
#define LIBPERF_WARN_INVALID_GROUP_HAS_UNCORE 1002
|
|
@@ -97,7 +97,7 @@ int Perrorno();
|
|
const char* Perror();
|
|
|
|
/**.
|
|
- * @brief Get warnning codes
|
|
+ * @brief Get warning codes
|
|
*/
|
|
int GetWarn();
|
|
|
|
diff --git a/python/modules/kperf/perror.py b/python/modules/kperf/perror.py
|
|
index 6f5cfb3..097f1f6 100644
|
|
--- a/python/modules/kperf/perror.py
|
|
+++ b/python/modules/kperf/perror.py
|
|
@@ -81,7 +81,7 @@ class Error:
|
|
|
|
UNKNOWN_ERROR = 9999
|
|
|
|
- # warnning code
|
|
+ # warning code
|
|
LIBPERF_WARN_CTXID_LOST = 1000
|
|
LIBPERF_WARN_FAIL_GET_PROC = 1001
|
|
LIBPERF_WARN_INVALID_GROUP_HAS_UNCORE = 1002
|
|
--
|
|
2.43.0
|
|
|