Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kemeng Shi and committed by
Tejun Heo
8034b314 474a549f

+1 -8
+1 -8
tools/workqueue/wq_monitor.py
··· 32 32 rescued The number of work items executed by the rescuer. 33 33 """ 34 34 35 - import sys 36 35 import signal 37 - import os 38 36 import re 39 37 import time 40 38 import json 41 39 42 40 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 45 42 46 43 import argparse 47 44 parser = argparse.ArgumentParser(description=desc, ··· 50 53 parser.add_argument('-j', '--json', action='store_true', 51 54 help='Output in json') 52 55 args = parser.parse_args() 53 - 54 - def err(s): 55 - print(s, file=sys.stderr, flush=True) 56 - sys.exit(1) 57 56 58 57 workqueues = prog['workqueues'] 59 58