Home
last modified time | relevance | path

Searched refs:SCX_FAIL_IF (Results 1 – 13 of 13) sorted by relevance

/linux/tools/testing/selftests/sched_ext/
H A Dinit_enable_count.c53 SCX_FAIL_IF(pids[i] < 0, "Failed to fork child"); in run_test()
61 SCX_FAIL_IF(!link, "Failed to attach struct_ops"); in run_test()
64 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
67 SCX_FAIL_IF(status != 0, "Pre-forked child %d exited with status %d\n", i, in run_test()
76 SCX_FAIL_IF(!link, "Failed to attach struct_ops"); in run_test()
81 SCX_FAIL_IF(pids[i] < 0, "Failed to fork child"); in run_test()
101 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
104 SCX_FAIL_IF(status != 0, "SCX child %d exited with status %d\n", i, in run_test()
116 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
119 SCX_FAIL_IF(status != 0, "Normal child %d exited with status %d\n", i, in run_test()
H A Dscx_test.h94 #define SCX_FAIL_IF(__cond, __fmt, ...) \ macro
100 #define SCX_GT(_x, _y) SCX_FAIL_IF((_x) <= (_y), "Expected %s > %s (%lu > %lu)", \
102 #define SCX_GE(_x, _y) SCX_FAIL_IF((_x) < (_y), "Expected %s >= %s (%lu >= %lu)", \
104 #define SCX_LT(_x, _y) SCX_FAIL_IF((_x) >= (_y), "Expected %s < %s (%lu < %lu)", \
106 #define SCX_LE(_x, _y) SCX_FAIL_IF((_x) > (_y), "Expected %s <= %s (%lu <= %lu)", \
108 #define SCX_EQ(_x, _y) SCX_FAIL_IF((_x) != (_y), "Expected %s == %s (%lu == %lu)", \
110 #define SCX_ASSERT(_x) SCX_FAIL_IF(!(_x), "Expected %s to be true (%lu)", \
H A Dreload_loop.c51 SCX_FAIL_IF(err, "Failed to create thread 0"); in run()
54 SCX_FAIL_IF(err, "Failed to create thread 1"); in run()
56 SCX_FAIL_IF(pthread_join(threads[0], &ret), "thread 0 failed"); in run()
57 SCX_FAIL_IF(pthread_join(threads[1], &ret), "thread 1 failed"); in run()
H A Ddsp_local_on.c17 SCX_FAIL_IF(!skel, "Failed to open"); in setup()
20 SCX_FAIL_IF(dsp_local_on__load(skel), "Failed to load skel"); in setup()
32 SCX_FAIL_IF(!link, "Failed to attach struct_ops"); in run()
H A Dmaximal.c18 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
30 SCX_FAIL_IF(!link, "Failed to attach scheduler"); in run()
H A Dselect_cpu_vtime.c19 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
33 SCX_FAIL_IF(!link, "Failed to attach scheduler"); in run()
H A Dddsp_vtimelocal_fail.c18 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
30 SCX_FAIL_IF(!link, "Failed to attach struct_ops"); in run()
H A Dddsp_bogus_dsq_fail.c19 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
31 SCX_FAIL_IF(!link, "Failed to attach struct_ops"); in run()
H A Dselect_cpu_dispatch_bad_dsq.c19 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
31 SCX_FAIL_IF(!link, "Failed to attach scheduler"); in run()
H A Dselect_cpu_dispatch_dbl_dsp.c19 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
31 SCX_FAIL_IF(!link, "Failed to attach scheduler"); in run()
H A Dselect_cpu_dispatch.c21 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
35 SCX_FAIL_IF(!link, "Failed to attach scheduler"); in run()
H A Dselect_cpu_dfl.c21 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
35 SCX_FAIL_IF(!link, "Failed to attach scheduler"); in run()
H A Dselect_cpu_dfl_nodispatch.c21 SCX_FAIL_IF(!skel, "Failed to open and load skel"); in setup()
35 SCX_FAIL_IF(!link, "Failed to attach scheduler"); in run()