On Tue, 25 Jun 2024, Yafang Shao wrote: > There are situations when it might make sense to combine livepatches > with and without the atomic replace on the same system. For example, > the livepatch without the atomic replace might provide a hotfix > or extra tuning. > > Managing livepatches on such systems might be challenging. And the > information which of the installed livepatches do not use the atomic > replace would be useful. Therefore, "replace" sysfs attribute is added > to show whether a livepatch supports atomic replace or not. > > A minor cleanup is also included in this patchset. > > v2->v3: > - Improve the commit log (Petr) > > v1->v2: https://lore.kernel.org/live-patching/20240610013237.92646-1-laoar.shao@xxxxxxxxx/ > - Refine the subject (Miroslav) > - Use sysfs_emit() instead and replace other snprintf() as well (Miroslav) > - Add selftests (Marcos) > > v1: https://lore.kernel.org/live-patching/20240607070157.33828-1-laoar.shao@xxxxxxxxx/ > > Yafang Shao (3): > livepatch: Add "replace" sysfs attribute > selftests/livepatch: Add selftests for "replace" sysfs attribute > livepatch: Replace snprintf() with sysfs_emit() > > .../ABI/testing/sysfs-kernel-livepatch | 8 ++++ > kernel/livepatch/core.c | 17 +++++-- > .../testing/selftests/livepatch/test-sysfs.sh | 48 +++++++++++++++++++ > 3 files changed, 70 insertions(+), 3 deletions(-) Acked-by: Miroslav Benes <mbenes@xxxxxxx> M