Lines Matching +full:free +full:- +full:running
1 // SPDX-License-Identifier: GPL-2.0
4 * video_device_test - Video Device Test
20 * sudo ./video_device_test -d /dev/videoX
22 * While test is running, remove the device or unbind the driver and
23 * ensure there are no use after free errors and other Oops in the
25 * When possible, enable KaSan kernel config option for use-after-free
53 return -1; in priority_test()
59 return -1; in priority_test()
64 result = -1; in priority_test()
68 printf("Priority wasn't set - test failed\n"); in priority_test()
69 result = -1; in priority_test()
76 return -1; in priority_test()
93 "While test is running, remove the device or unbind\n" in loop_test()
94 "driver and ensure there are no use after free errors\n" in loop_test()
96 "kernel config option for use-after-free error detection.\n\n"); in loop_test()
112 count--; in loop_test()
125 printf("Usage: %s [-d </dev/videoX>]\n", argv[0]); in main()
126 exit(-1); in main()
130 while ((opt = getopt(argc, argv, "d:")) != -1) { in main()
133 strncpy(video_dev, optarg, sizeof(video_dev) - 1); in main()
134 video_dev[sizeof(video_dev)-1] = '\0'; in main()
137 printf("Usage: %s [-d </dev/videoX>]\n", argv[0]); in main()
138 exit(-1); in main()
144 if (fd == -1) { in main()
146 exit(-1); in main()
151 printf("Priority test - PASSED\n"); in main()
153 printf("Priority test - FAILED\n"); in main()