Re: [PATCH 1/3] delaytop: refactor repetitive delay fields into array with enum
From: xu.xin16
Date: Sat Jul 18 2026 - 09:26:24 EST
> Replace the 9 groups of (count, delay_total, delay_max, delay_max_ts)
> named fields in struct task_info with a struct delay_metrics array
> indexed by enum delay_type. This eliminates all unsafe pointer
> arithmetic via offsetof() from compare_tasks(),
> field_delay_max_and_ts(), and get_field_delay_values().
>
> The struct field_desc now stores an enum delay_type index instead of
> four separate unsigned long offset values.
>
> Signed-off-by: Wang Yaxin <wang.yaxin@xxxxxxxxxx>
You missed the subject prefix 'v3'.
Acked-by: Xu Xin <xu.xin16@xxxxxxxxxx>