Commit [a0e618] Maximize Restore History

new testcase: kmsg01

Test /dev/kmsg based on kernel doc: Documentation/ABI/testing/dev-kmsg
- read() blocks
- non-blocking read() fails with EAGAIN
- partial read fails (buffer smaller than message)
- can write to /dev/kmsg and message seqno grows
- first read() after open() returns same message
- if messages get overwritten, read() returns -EPIPE
- device supports SEEK_SET, SEEK_END, SEEK_DATA

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Cyril Hrubis <chrubis@suse.cz>

Jan Stancek Jan Stancek 2013-06-07

added runtest/kernel_misc
added testcases/kernel/logging/kmsg/Makefile
added testcases/kernel/logging/kmsg/kmsg01.c
added testcases/kernel/logging/.gitignore
added testcases/kernel/logging/Makefile
runtest/kernel_misc Diff Switch to side-by-side view
Loading...
testcases/kernel/logging/kmsg/Makefile Diff Switch to side-by-side view
Loading...
testcases/kernel/logging/kmsg/kmsg01.c Diff Switch to side-by-side view
Loading...
testcases/kernel/logging/.gitignore Diff Switch to side-by-side view
Loading...
testcases/kernel/logging/Makefile Diff Switch to side-by-side view
Loading...