]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
printk: ringbuffer: Add KUnit test
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 12 Jun 2025 06:29:07 +0000 (08:29 +0200)
committerPetr Mladek <pmladek@suse.com>
Wed, 18 Jun 2025 14:42:42 +0000 (16:42 +0200)
commit5ea2bcdfbf46fc3aac239ea371a9561053cc977a
tree32f48051c17bee9dca621ce2eb0dc6662a360389
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
printk: ringbuffer: Add KUnit test

The KUnit test validates the correct operation of the ringbuffer.
A separate dedicated ringbuffer is used so that the global printk
ringbuffer is not touched.

Co-developed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20250612-printk-ringbuffer-test-v3-1-550c088ee368@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
init/Kconfig
kernel/printk/.kunitconfig [new file with mode: 0644]
kernel/printk/Makefile
kernel/printk/printk_ringbuffer.c
kernel/printk/printk_ringbuffer_kunit_test.c [new file with mode: 0644]