Re: [PATCH V5 1/1] livepatch: Add stack_order sysfs attribute
From: Miroslav Benes
Date: Fri Oct 11 2024 - 07:21:05 EST
On Tue, 8 Oct 2024, Wardenjohn wrote:
> Add "stack_order" sysfs attribute which holds the order in which a live
> patch module was loaded into the system. A user can then determine an
> active live patched version of a function.
>
> cat /sys/kernel/livepatch/livepatch_1/stack_order -> 1
>
> means that livepatch_1 is the first live patch applied
>
> cat /sys/kernel/livepatch/livepatch_module/stack_order -> N
>
> means that livepatch_module is the Nth live patch applied
>
> Suggested-by: Petr Mladek <pmladek@xxxxxxxx>
> Suggested-by: Miroslav Benes <mbenes@xxxxxxx>
> Suggested-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
> Signed-off-by: Wardenjohn <zhangwarden@xxxxxxxxx>
Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>
M