]> git.karo-electronics.de Git - linux-beck.git/commit
selftests: add a new test for Media Controller API
authorShuah Khan <shuahkh@osg.samsung.com>
Sat, 13 Feb 2016 00:43:31 +0000 (17:43 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 25 Feb 2016 16:47:02 +0000 (09:47 -0700)
commit9d22f6e14e249713108c8adcc8705c39303f0628
tree7672a2a9738424f4e883a50d0792cebda3e7550b
parent92e963f50fc74041b5e9e744c330dca48e04f08d
selftests: add a new test for Media Controller API

This test opens user specified Media Device and calls
MEDIA_IOC_DEVICE_INFO ioctl in a loop once every 10
seconds. This test is for detecting errors in device
removal path.

Usage:
    sudo ./media_device_test -d /dev/mediaX

While test is running, remove the device and
ensure there are no use after free errors and
other Oops in the dmesg. Enable KaSan kernel
config option for use-after-free error detection.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/media_tests/.gitignore [new file with mode: 0644]
tools/testing/selftests/media_tests/Makefile [new file with mode: 0644]
tools/testing/selftests/media_tests/media_device_test.c [new file with mode: 0644]