live-patching.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] livepatch: Add "replace" sysfs attribute
@ 2024-06-10  1:32 Yafang Shao
  2024-06-10  1:32 ` [PATCH v2 1/3] " Yafang Shao
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Yafang Shao @ 2024-06-10  1:32 UTC (permalink / raw)
  To: jpoimboe, jikos, mbenes, pmladek, joe.lawrence; +Cc: live-patching, Yafang Shao

Add "replace" sysfs attribute to show whether a livepatch supports
atomic replace or not.

A minor cleanup is also included in this patchset.

v1->v2:
- 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@gmail.com/

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(-)

-- 
2.39.1


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2024-06-28  8:20 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-10  1:32 [PATCH v2 0/3] livepatch: Add "replace" sysfs attribute Yafang Shao
2024-06-10  1:32 ` [PATCH v2 1/3] " Yafang Shao
2024-06-24 13:46   ` Petr Mladek
2024-06-25  2:14     ` Yafang Shao
2024-06-10  1:32 ` [PATCH v2 2/3] selftests/livepatch: Add selftests for " Yafang Shao
2024-06-11 17:28   ` Marcos Paulo de Souza
2024-06-24 13:49   ` Petr Mladek
2024-06-10  1:32 ` [PATCH v2 3/3] livepatch: Replace snprintf() with sysfs_emit() Yafang Shao
2024-06-24 13:50   ` Petr Mladek
2024-06-10 17:18 ` [PATCH v2 0/3] livepatch: Add "replace" sysfs attribute Song Liu
2024-06-11  2:46   ` Yafang Shao
2024-06-11  5:01     ` Song Liu
2024-06-21  7:31     ` Petr Mladek
2024-06-21  8:39       ` Yafang Shao
2024-06-21 10:04         ` Petr Mladek
2024-06-23  2:52           ` Yafang Shao
2024-06-24 14:04             ` Petr Mladek
2024-06-25  2:16               ` Yafang Shao
2024-06-27 13:02             ` Miroslav Benes
2024-06-27 15:55               ` Yafang Shao
2024-06-28  8:20                 ` Miroslav Benes
2024-06-21  2:26 ` Yafang Shao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).