Skip to content

Commit

Permalink
workqueue: remove unnecessary import and function in wq_monitor.py
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kemeng Shi authored and htejun committed Mar 25, 2024
1 parent 474a549 commit 8034b31
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tools/workqueue/wq_monitor.py
Original file line number Diff line number Diff line change
@@ -32,16 +32,13 @@
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 @@
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']

0 comments on commit 8034b31

Please sign in to comment.