summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-05-16 00:40:33 +0300
committerTejun Heo <tj@kernel.org>2024-05-16 00:40:33 +0300
commita2a58909cfb5fd5e9f7bb7d954eec0a32fee3f1f (patch)
treea9bca44d2f2498aeb49124fc3f2e26e505263ab4 /tools
parent8c06da67d0bd3139a97f301b4aa9c482b9d4f29e (diff)
parent51da7f68edae38e81543d57fd71811f7481c0472 (diff)
downloadlinux-a2a58909cfb5fd5e9f7bb7d954eec0a32fee3f1f.tar.xz
Merge branch 'for-6.10' into test-merge-for-6.10
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']