Commit 8034b314 authored by Kemeng Shi's avatar Kemeng Shi Committed by Tejun Heo

workqueue: remove unnecessary import and function in wq_monitor.py

Remove unnecessary import and function in wq_monitor.py
Signed-off-by: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 474a549f
...@@ -32,16 +32,13 @@ https://github.com/osandov/drgn. ...@@ -32,16 +32,13 @@ https://github.com/osandov/drgn.
rescued The number of work items executed by the rescuer. rescued The number of work items executed by the rescuer.
""" """
import sys
import signal import signal
import os
import re import re
import time import time
import json import json
import drgn import drgn
from drgn.helpers.linux.list import list_for_each_entry,list_empty from drgn.helpers.linux.list import list_for_each_entry
from drgn.helpers.linux.cpumask import for_each_possible_cpu
import argparse import argparse
parser = argparse.ArgumentParser(description=desc, parser = argparse.ArgumentParser(description=desc,
...@@ -54,10 +51,6 @@ parser.add_argument('-j', '--json', action='store_true', ...@@ -54,10 +51,6 @@ parser.add_argument('-j', '--json', action='store_true',
help='Output in json') help='Output in json')
args = parser.parse_args() args = parser.parse_args()
def err(s):
print(s, file=sys.stderr, flush=True)
sys.exit(1)
workqueues = prog['workqueues'] workqueues = prog['workqueues']
WQ_UNBOUND = prog['WQ_UNBOUND'] WQ_UNBOUND = prog['WQ_UNBOUND']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment