Skip to content
Commit 3dae09de authored by Wardenjohn's avatar Wardenjohn Committed by Petr Mladek
Browse files

livepatch: Add stack_order sysfs attribute



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: default avatarPetr Mladek <pmladek@suse.com>
Suggested-by: default avatarMiroslav Benes <mbenes@suse.cz>
Suggested-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: default avatarWardenjohn <zhangwarden@gmail.com>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Tested-by: default avatarPetr Mladek <pmladek@suse.com>
Reviewed-by: default avatarMiroslav Benes <mbenes@suse.cz>
Link: https://lore.kernel.org/r/20241008014856.3729-2-zhangwarden@gmail.com


[pmladek@suse.com: Updated kernel version and date in the ABI documentation.]
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent aa44f414
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment