Skip to content

Commit 8034b31

Browse files
Kemeng Shihtejun
authored andcommitted
workqueue: remove unnecessary import and function in wq_monitor.py
Remove unnecessary import and function in wq_monitor.py Signed-off-by: Kemeng Shi <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 474a549 commit 8034b31

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tools/workqueue/wq_monitor.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@
3232
rescued The number of work items executed by the rescuer.
3333
"""
3434

35-
import sys
3635
import signal
37-
import os
3836
import re
3937
import time
4038
import json
4139

4240
import drgn
43-
from drgn.helpers.linux.list import list_for_each_entry,list_empty
44-
from drgn.helpers.linux.cpumask import for_each_possible_cpu
41+
from drgn.helpers.linux.list import list_for_each_entry
4542

4643
import argparse
4744
parser = argparse.ArgumentParser(description=desc,
@@ -54,10 +51,6 @@
5451
help='Output in json')
5552
args = parser.parse_args()
5653

57-
def err(s):
58-
print(s, file=sys.stderr, flush=True)
59-
sys.exit(1)
60-
6154
workqueues = prog['workqueues']
6255

6356
WQ_UNBOUND = prog['WQ_UNBOUND']

0 commit comments

Comments
 (0)