Re: [PATCH] tools/workqueue: parse help before importing drgn
From: Tejun Heo
Date: Wed Jun 24 2026 - 14:58:26 EST
On Wed, Jun 24, 2026 at 02:33:36PM +0200, Yousef Alhouseen wrote:
> wq_monitor.py and wq_dump.py import drgn before argparse can handle "-h".
> That makes help fail on systems where drgn is not installed, even though
> the scripts do not need drgn to print usage text.
>
> Parse arguments before importing drgn so the help path works without the
> runtime debugging dependency. Normal execution still imports drgn before
> reading kernel state.
>
> Signed-off-by: Yousef Alhouseen <alhouseenyousef@xxxxxxxxx>
Applied to wq/for-7.3.
Thanks.
--
tejun