/Linux-v4.19/lib/ |
D | percpu_test.c | 4 #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 …]
|
D | test_bitfield.c | 102 #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/ |
D | test_select_reuseport.c | 49 #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 …]
|
D | test_progs.c | 73 #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 …]
|
D | get_cgroup_id_user.c | 24 #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 …]
|
D | test_btf.c | 28 #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 …]
|
D | test_maps.c | 36 #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/ |
D | clcd.h | 278 #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/ |
D | SRCU-t | 5 #CHECK#CONFIG_TINY_SRCU=y 10 #CHECK#CONFIG_PREEMPT_COUNT=y
|
D | TINY01 | 5 #CHECK#CONFIG_TINY_RCU=y 10 #CHECK#CONFIG_RCU_STALL_COMMON=n
|
D | TINY02 | 5 #CHECK#CONFIG_TINY_RCU=y 10 #CHECK#CONFIG_PROVE_RCU=y
|
D | TREE09 | 6 #CHECK#CONFIG_PREEMPT_RCU=y 18 #CHECK#CONFIG_RCU_EXPERT=n
|
D | TREE05 | 6 #CHECK#CONFIG_TREE_RCU=y 18 #CHECK#CONFIG_PROVE_RCU=y
|
D | TREE06 | 6 #CHECK#CONFIG_TREE_RCU=y 20 #CHECK#CONFIG_PROVE_RCU=y
|
D | SRCU-N | 8 #CHECK#CONFIG_RCU_EXPERT=n
|
D | TASKS01 | 9 #CHECK#CONFIG_PROVE_RCU=y
|
D | SRCU-u | 5 #CHECK#CONFIG_TINY_SRCU=y
|
D | TASKS03 | 12 #CHECK#CONFIG_RCU_EXPERT=n
|
D | TREE07 | 6 #CHECK#CONFIG_TREE_RCU=y
|
D | TREE03 | 6 #CHECK#CONFIG_PREEMPT_RCU=y
|
D | TREE01 | 5 #CHECK#CONFIG_PREEMPT_RCU=y
|
D | TREE04 | 6 #CHECK#CONFIG_TREE_RCU=y
|
/Linux-v4.19/tools/testing/selftests/rcutorture/configs/rcuperf/ |
D | TINY | 5 #CHECK#CONFIG_TINY_RCU=y
|
D | TREE | 5 #CHECK#CONFIG_PREEMPT_RCU=y
|
D | TREE54 | 6 #CHECK#CONFIG_PREEMPT_RCU=y
|