Lines Matching +full:free +full:- +full:running
1 // SPDX-License-Identifier: GPL-2.0
4 * media_device_test.c - Media Controller Device ioctl loop Test
23 * sudo ./media_device_test -d /dev/mediaX
25 * While test is running, remove the device and
26 * ensure there are no use after free errors and
28 * config option for use-after-free error detection.
54 printf("Usage: %s [-d </dev/mediaX>]\n", argv[0]); in main()
55 exit(-1); in main()
59 while ((opt = getopt(argc, argv, "d:")) != -1) { in main()
62 strncpy(media_device, optarg, sizeof(media_device) - 1); in main()
63 media_device[sizeof(media_device)-1] = '\0'; in main()
66 printf("Usage: %s [-d </dev/mediaX>]\n", argv[0]); in main()
67 exit(-1); in main()
72 ksft_exit_skip("Please run the test as root - Exiting.\n"); in main()
80 if (fd == -1) { in main()
82 exit(-1); in main()
86 "While test is running, remove the device and\n" in main()
87 "ensure there are no use after free errors and\n" in main()
89 "config option for use-after-free error detection.\n\n"); in main()
91 printf("Running test for %d iterations\n", count); in main()
98 printf("Media device model %s driver %s - count %d\n", in main()
101 count--; in main()