39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From 11a153b1d67139d2fb38cc43f818d58688b3fa97 Mon Sep 17 00:00:00 2001
|
|
From: Susanooo <zhangchujun_yewu@cmss.chinamobile.com>
|
|
Date: Wed, 6 Nov 2024 05:47:55 +0000
|
|
Subject: [PATCH 17/20] Delete unused import packages and fix spelling mistake
|
|
|
|
Signed-off-by: Susanooo <zhangchujun_yewu@cmss.chinamobile.com>
|
|
---
|
|
python/modules/ksym/symbol.py | 2 +-
|
|
python/tests/test_api.py | 3 ---
|
|
2 files changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
diff --git a/python/modules/ksym/symbol.py b/python/modules/ksym/symbol.py
|
|
index f47b057..0e7099e 100644
|
|
--- a/python/modules/ksym/symbol.py
|
|
+++ b/python/modules/ksym/symbol.py
|
|
@@ -70,7 +70,7 @@ def record_module(pid: int, dwarf: bool = True) -> None:
|
|
|
|
def get_stack(pid: int, stacks: List[int]) -> Iterator[Stack]:
|
|
"""
|
|
- Convert a callstack to a unsigned long long hashid
|
|
+ Convert a callstack to an unsigned long long hashid
|
|
"""
|
|
return _libkperf.StackToHash(pid, stacks)
|
|
|
|
diff --git a/python/tests/test_api.py b/python/tests/test_api.py
|
|
index 7e32437..467700a 100644
|
|
--- a/python/tests/test_api.py
|
|
+++ b/python/tests/test_api.py
|
|
@@ -1,6 +1,3 @@
|
|
-import time
|
|
-from collections import defaultdict
|
|
-
|
|
import kperf
|
|
|
|
def TestAPI_InitCountNullEvt():
|
|
--
|
|
2.43.0
|
|
|