Home
last modified time | relevance | path

Searched refs:CHECK (Results 1 – 25 of 50) sorted by relevance

12

/Linux-v4.19/lib/
Dpercpu_test.c4 #define CHECK(native, pcp, expected) \ macro
35 CHECK(l, long_counter, -1); in percpu_test_init()
39 CHECK(l, long_counter, 0); in percpu_test_init()
46 CHECK(ul, ulong_counter, 1); in percpu_test_init()
50 CHECK(ul, ulong_counter, 0); in percpu_test_init()
54 CHECK(ul, ulong_counter, -1); in percpu_test_init()
61 CHECK(ul, ulong_counter, -1); in percpu_test_init()
62 CHECK(ul, ulong_counter, ULONG_MAX); in percpu_test_init()
66 CHECK(l, long_counter, 0xffffffff); in percpu_test_init()
70 CHECK(l, long_counter, (long)0x100000000LL); in percpu_test_init()
[all …]
Dtest_bitfield.c102 #define CHECK(tp, mask) do { \ macro
112 CHECK(u8, 0x0f); in test_variables()
113 CHECK(u8, 0xf0); in test_variables()
114 CHECK(u8, 0x38); in test_variables()
116 CHECK(u16, 0x0038); in test_variables()
117 CHECK(u16, 0x0380); in test_variables()
118 CHECK(u16, 0x3800); in test_variables()
119 CHECK(u16, 0x8000); in test_variables()
121 CHECK(u32, 0x80000000); in test_variables()
122 CHECK(u32, 0x7f000000); in test_variables()
[all …]
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_select_reuseport.c49 #define CHECK(condition, tag, format...) ({ \ macro
70 CHECK(reuseport_array == -1, "creating reuseport_array", in create_maps()
81 CHECK(outer_map == -1, "creating outer_map", in create_maps()
96 CHECK(IS_ERR_OR_NULL(obj), "open test_select_reuseport_kern.o", in prepare_bpf_obj()
100 CHECK(!prog, "get first bpf_program", "!prog\n"); in prepare_bpf_obj()
104 CHECK(!map, "find outer_map", "!map\n"); in prepare_bpf_obj()
106 CHECK(err, "reuse outer_map", "err:%d\n", err); in prepare_bpf_obj()
109 CHECK(err, "load bpf_object", "err:%d\n", err); in prepare_bpf_obj()
112 CHECK(select_by_skb_data_prog == -1, "get prog fd", in prepare_bpf_obj()
116 CHECK(!map, "find result_map", "!map\n"); in prepare_bpf_obj()
[all …]
Dtest_progs.c73 #define CHECK(condition, tag, format...) ({ \ macro
115 CHECK(err || errno || retval, "ipv4", in test_pkt_access()
121 CHECK(err || errno || retval, "ipv6", in test_pkt_access()
156 CHECK(err || errno || retval != XDP_TX || size != 74 || in test_xdp()
163 CHECK(err || errno || retval != XDP_TX || size != 114 || in test_xdp()
188 CHECK(err || errno || retval != XDP_DROP, in test_xdp_adjust_tail()
194 CHECK(err || errno || retval != XDP_TX || size != 54, in test_xdp_adjust_tail()
257 CHECK(err || errno || retval != 7/*TC_ACT_REDIRECT*/ || size != 54 || in test_l4lb()
264 CHECK(err || errno || retval != 7/*TC_ACT_REDIRECT*/ || size != 74 || in test_l4lb()
346 CHECK(err || errno || retval != 1 || size != 54 || in test_xdp_noinline()
[all …]
Dget_cgroup_id_user.c24 #define CHECK(condition, tag, format...) ({ \ macro
62 if (CHECK(err, "setup_cgroup_environment", "err %d errno %d\n", err, in main()
67 if (CHECK(cgroup_fd < 0, "create_and_get_cgroup", "err %d errno %d\n", in main()
72 if (CHECK(err, "join_cgroup", "err %d errno %d\n", err, errno)) in main()
76 if (CHECK(err, "bpf_prog_load", "err %d errno %d\n", err, errno)) in main()
80 if (CHECK(cgidmap_fd < 0, "bpf_find_map", "err %d errno %d\n", in main()
85 if (CHECK(pidmap_fd < 0, "bpf_find_map", "err %d errno %d\n", in main()
95 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in main()
99 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", in main()
113 if (CHECK(pmu_fd < 0, "perf_event_open", "err %d errno %d\n", pmu_fd, in main()
[all …]
Dtest_btf.c28 #define CHECK(condition, format...) ({ \ macro
1409 if (CHECK(type_sec_size < 0, "Cannot get nr_raw_types")) in btf_raw_create()
1414 if (CHECK(!raw_btf, "Cannot allocate memory for raw_btf")) in btf_raw_create()
1426 if (CHECK(!next_str, "Error in getting next_str")) { in btf_raw_create()
1485 if (CHECK(err, "btf_fd:%d test->btf_load_err:%u", in do_test_raw()
1487 CHECK(test->err_str && !strstr(btf_log_buf, test->err_str), in do_test_raw()
1508 CHECK(err, "map_fd:%d test->map_create_err:%u", in do_test_raw()
1631 if (CHECK(!user_btf, "!user_btf")) { in test_big_btf_info()
1639 if (CHECK(btf_fd == -1, "errno:%d", errno)) { in test_big_btf_info()
1656 if (CHECK(!err, "!err")) { in test_big_btf_info()
[all …]
Dtest_maps.c36 #define CHECK(condition, tag, format...) ({ \ macro
1192 CHECK(fd64 == -1, "socket()", in prepare_reuseport_grp()
1198 CHECK(err == -1, "setsockopt(SO_REUSEPORT)", in prepare_reuseport_grp()
1204 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1210 CHECK(err == -1, "bind()", in prepare_reuseport_grp()
1216 CHECK(err == -1, "getsockname()", in prepare_reuseport_grp()
1223 CHECK(err == -1, "getsockopt(SO_COOKIE)", in prepare_reuseport_grp()
1233 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1238 CHECK(err == -1, "listen()", in prepare_reuseport_grp()
1263 CHECK(map_fd == -1, "reuseport array create", in test_reuseport_array()
[all …]
/Linux-v4.19/include/linux/amba/
Dclcd.h278 #define CHECK(e,l,h) (var->e < l || var->e > h) in clcdfb_check() macro
279 if (CHECK(right_margin, (5+1), 256) || /* back porch */ in clcdfb_check()
280 CHECK(left_margin, (5+1), 256) || /* front porch */ in clcdfb_check()
281 CHECK(hsync_len, (5+1), 256) || in clcdfb_check()
288 #undef CHECK in clcdfb_check()
301 #define CHECK(e) (var->e != fb->fb.var.e) in clcdfb_check() macro
303 (CHECK(xres) || in clcdfb_check()
304 CHECK(yres) || in clcdfb_check()
305 CHECK(bits_per_pixel) || in clcdfb_check()
306 CHECK(pixclock) || in clcdfb_check()
[all …]
/Linux-v4.19/tools/testing/selftests/rcutorture/configs/rcu/
DSRCU-t5 #CHECK#CONFIG_TINY_SRCU=y
10 #CHECK#CONFIG_PREEMPT_COUNT=y
DTINY015 #CHECK#CONFIG_TINY_RCU=y
10 #CHECK#CONFIG_RCU_STALL_COMMON=n
DTINY025 #CHECK#CONFIG_TINY_RCU=y
10 #CHECK#CONFIG_PROVE_RCU=y
DTREE096 #CHECK#CONFIG_PREEMPT_RCU=y
18 #CHECK#CONFIG_RCU_EXPERT=n
DTREE056 #CHECK#CONFIG_TREE_RCU=y
18 #CHECK#CONFIG_PROVE_RCU=y
DTREE066 #CHECK#CONFIG_TREE_RCU=y
20 #CHECK#CONFIG_PROVE_RCU=y
DSRCU-N8 #CHECK#CONFIG_RCU_EXPERT=n
DTASKS019 #CHECK#CONFIG_PROVE_RCU=y
DSRCU-u5 #CHECK#CONFIG_TINY_SRCU=y
DTASKS0312 #CHECK#CONFIG_RCU_EXPERT=n
DTREE076 #CHECK#CONFIG_TREE_RCU=y
DTREE036 #CHECK#CONFIG_PREEMPT_RCU=y
DTREE015 #CHECK#CONFIG_PREEMPT_RCU=y
DTREE046 #CHECK#CONFIG_TREE_RCU=y
/Linux-v4.19/tools/testing/selftests/rcutorture/configs/rcuperf/
DTINY5 #CHECK#CONFIG_TINY_RCU=y
DTREE5 #CHECK#CONFIG_PREEMPT_RCU=y
DTREE546 #CHECK#CONFIG_PREEMPT_RCU=y

12