Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH v4 0/3] selftests: livepatch: test livepatching a kprobed function
@ 2024-09-30  9:33 Michael Vetter
  2024-09-30  9:33 ` [PATCH v4 1/3] selftests: livepatch: rename KLP_SYSFS_DIR to SYSFS_KLP_DIR Michael Vetter
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Michael Vetter @ 2024-09-30  9:33 UTC (permalink / raw)
  To: linux-kselftest, live-patching, linux-kernel; +Cc: Michael Vetter

Thanks to Miroslav, Petr and Marcos for the reviews!

V4:
Use variable for /sys/kernel/debug.
Be consistent with "" around variables.
Fix path in commit message to /sys/kernel/debug/kprobes/enabled.

V3:
Save and restore kprobe state also when test fails, by integrating it
into setup_config() and cleanup().
Rename SYSFS variables in a more logical way.
Sort test modules in alphabetical order.
Rename module description.

V2:
Save and restore kprobe state.

Michael Vetter (3):
  selftests: livepatch: rename KLP_SYSFS_DIR to SYSFS_KLP_DIR
  selftests: livepatch: save and restore kprobe state
  selftests: livepatch: test livepatching a kprobed function

 tools/testing/selftests/livepatch/Makefile    |  3 +-
 .../testing/selftests/livepatch/functions.sh  | 19 ++++--
 .../selftests/livepatch/test-kprobe.sh        | 62 +++++++++++++++++++
 .../selftests/livepatch/test_modules/Makefile |  3 +-
 .../livepatch/test_modules/test_klp_kprobe.c  | 38 ++++++++++++
 5 files changed, 117 insertions(+), 8 deletions(-)
 create mode 100755 tools/testing/selftests/livepatch/test-kprobe.sh
 create mode 100644 tools/testing/selftests/livepatch/test_modules/test_klp_kprobe.c

-- 
2.46.1


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

end of thread, other threads:[~2024-10-02 15:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-30  9:33 [PATCH v4 0/3] selftests: livepatch: test livepatching a kprobed function Michael Vetter
2024-09-30  9:33 ` [PATCH v4 1/3] selftests: livepatch: rename KLP_SYSFS_DIR to SYSFS_KLP_DIR Michael Vetter
2024-10-02 15:23   ` Miroslav Benes
2024-09-30  9:33 ` [PATCH v4 2/3] selftests: livepatch: save and restore kprobe state Michael Vetter
2024-09-30  9:33 ` [PATCH v4 3/3] selftests: livepatch: test livepatching a kprobed function Michael Vetter
2024-10-02 15:29   ` Miroslav Benes
2024-10-02 13:55 ` [PATCH v4 0/3] " Marcos Paulo de Souza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox