Re: [PATCH] livepatch: introduce 'stack_order' sysfs interface to klp_patch

2024-09-29 Thread zhang warden
Hi, Miroslav! > On Sep 27, 2024, at 22:11, Miroslav Benes wrote: > > > How do you prepare your patches? > > "---" delimiter is missing here. I seem to found out what cause this problem. I seemed to use 'git format-patch' with '-p' option which will make my patch have no diff state. Sorry f

Re: [PATCH] livepatch: introduce 'stack_order' sysfs interface to klp_patch

2024-09-28 Thread zhang warden
Hi, Miroslav! > > Perhaps something like > > " > 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 ->

Re: [PATCH] livepatch: introduce 'stack_order' sysfs interface to klp_patch

2024-09-27 Thread Miroslav Benes
Hi, I would change the subject to something like "livepatch: Add "stack_order" sysfs attribute" to keep it somehow consistent with what we have there so far. On Wed, 25 Sep 2024, Wardenjohn wrote: > This feature can provide livepatch patch order information. > With the order of sysfs interface

[PATCH] livepatch: introduce 'stack_order' sysfs interface to klp_patch

2024-09-24 Thread Wardenjohn
This feature can provide livepatch patch order information. With the order of sysfs interface of one klp_patch, we can use patch order to find out which function of the patch is now activate. After the discussion, we decided that patch-level sysfs interface is the only accaptable way to introduce