Re: [PATCH v2] tools/workqueue/wq_dump.py: Add busy worker inspection and BH pool states
From: Breno Leitao
Date: Mon Sep 14 2026 - 04:59:50 EST
On Fri, Sep 11, 2026 at 05:06:25PM -0400, Aaron Tomlin wrote:
> @@ -176,6 +202,40 @@ for pi, pool in idr_for_each(worker_pool_idr):
> print(' strict', end='')
> print('')
>
> + if args.busy:
> + for bkt in pool.busy_hash:
> + for worker in hlist_for_each_entry('struct worker', bkt.address_of_(), 'hentry'):
> + for _ in range(3):
> + try:
...
> + except Exception:
> + continue
Is a bare except the right scope here? It swallows all other silly
exceptions, so a typo anywhere in this block makes -b print nothing at
all instead of failing.
I would go for drgn.FaultError and LookupError, these two that are
actually expected.
--breno