summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2024-03-21 23:04:20 +0800
committerTejun Heo <tj@kernel.org>2024-03-25 10:11:32 -1000
commit8034b31464c53d6e182f65a293a87b50ddf6dd7e (patch)
tree3cc181b2c17dbde5172397c9e12421b7f14248f6 /tools
parent474a549ff4c989427a14fdab851e562c8a63fe24 (diff)
downloadlinux-stable-8034b31464c53d6e182f65a293a87b50ddf6dd7e.tar.gz
linux-stable-8034b31464c53d6e182f65a293a87b50ddf6dd7e.tar.bz2
linux-stable-8034b31464c53d6e182f65a293a87b50ddf6dd7e.zip
workqueue: remove unnecessary import and function in wq_monitor.py
Remove unnecessary import and function in wq_monitor.py Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/workqueue/wq_monitor.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/workqueue/wq_monitor.py b/tools/workqueue/wq_monitor.py
index a8856a9c45dc..9e964c5be40c 100644
--- a/tools/workqueue/wq_monitor.py
+++ b/tools/workqueue/wq_monitor.py
@@ -32,16 +32,13 @@ https://github.com/osandov/drgn.
rescued The number of work items executed by the rescuer.
"""
-import sys
import signal
-import os
import re
import time
import json
import drgn
-from drgn.helpers.linux.list import list_for_each_entry,list_empty
-from drgn.helpers.linux.cpumask import for_each_possible_cpu
+from drgn.helpers.linux.list import list_for_each_entry
import argparse
parser = argparse.ArgumentParser(description=desc,
@@ -54,10 +51,6 @@ parser.add_argument('-j', '--json', action='store_true',
help='Output in json')
args = parser.parse_args()
-def err(s):
- print(s, file=sys.stderr, flush=True)
- sys.exit(1)
-
workqueues = prog['workqueues']
WQ_UNBOUND = prog['WQ_UNBOUND']