Re: [PATCH] tools/cgroup: iocost_monitor: parse help before importing drgn
From: Tejun Heo
Date: Wed Jun 24 2026 - 14:59:54 EST
On Wed, Jun 24, 2026 at 02:36:52PM +0200, Yousef Alhouseen wrote:
> iocost_monitor.py imports drgn before argparse can handle "-h" or report
> argument errors. That makes basic usage help fail on systems where drgn is
> not installed.
>
> Parse arguments before importing drgn so the help and argument-error paths
> work without the runtime debugging dependency. Normal execution still
> imports drgn before reading kernel state.
>
> Signed-off-by: Yousef Alhouseen <alhouseenyousef@xxxxxxxxx>
Applied to cgroup/for-7.3.
Thanks.
--
tejun