aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/media_tests/media_device_test.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-06-27selftests: media_device_test change it to randomize loop countShuah Khan1-6/+13
Change it to randomize the loop count instead of hardcoded number of times ioctl is called. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2016-02-25selftests: media_dcevice_test fix usage informationShuah Khan1-1/+1
Fix the incorrect usage information. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2016-02-25selftests: media_dcevice_test fix to handle ioctl failure caseShuah Khan1-2/+3
Fix to print information returned by ioctl only when it returns success. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2016-02-25selftests: add a new test for Media Controller APIShuah Khan1-0/+94
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>