/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | hashmap.c | 59 if (CHECK(err != -ENOENT, "hashmap__update", in test_hashmap_generic() 67 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic() 72 if (CHECK(err, "elem_add", "failed to add k/v %ld = %ld: %d\n", in test_hashmap_generic() 76 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic() 79 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic() 84 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic() 87 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic() 98 if (CHECK(v - k != 1024, "check_kv", in test_hashmap_generic() 102 if (CHECK(found_msk != (1ULL << ELEM_CNT) - 1, "elem_cnt", in test_hashmap_generic() 111 if (CHECK(err != -EEXIST, "hashmap__add", in test_hashmap_generic() [all …]
|
D | cgroup_attach_override.c | 32 if (CHECK(allow_prog < 0, "prog_load_allow", in serial_test_cgroup_attach_override() 37 if (CHECK(drop_prog < 0, "prog_load_drop", in serial_test_cgroup_attach_override() 42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in serial_test_cgroup_attach_override() 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 51 if (CHECK(!system(PING_CMD), "ping_fail", in serial_test_cgroup_attach_override() 56 if (CHECK(bar < 0, "cgroup_join_bar", "cgroup setup failed\n")) in serial_test_cgroup_attach_override() 59 if (CHECK(!system(PING_CMD), "ping_fail", in serial_test_cgroup_attach_override() 63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 69 if (CHECK(system(PING_CMD), "ping_ok", "ping failed\n")) in serial_test_cgroup_attach_override() 72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() [all …]
|
D | pinning.c | 18 if (CHECK(!map, "find map", "NULL map")) in get_map_id() 23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id() 48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning() 56 if (CHECK(err, "default open", "err %d errno %d\n", err, errno)) { in test_pinning() 62 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning() 67 if (CHECK(err, "stat pinpath", "err %d errno %d\n", err, errno)) in test_pinning() 72 if (CHECK(!err || errno != ENOENT, "stat nopinpath", in test_pinning() 78 if (CHECK(!err || errno != ENOENT, "stat nopinpath2", in test_pinning() 95 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning() 100 if (CHECK(map_id != map_id2, "check reuse", in test_pinning() [all …]
|
D | skeleton.c | 28 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_skeleton() 31 if (CHECK(skel->kconfig, "skel_kconfig", "kconfig is mmaped()!\n")) in test_skeleton() 44 CHECK(data->in1 != -1, "in1", "got %d != exp %d\n", data->in1, -1); in test_skeleton() 45 CHECK(data->out1 != -1, "out1", "got %d != exp %d\n", data->out1, -1); in test_skeleton() 46 CHECK(data->in2 != -1, "in2", "got %lld != exp %lld\n", data->in2, -1LL); in test_skeleton() 47 CHECK(data->out2 != -1, "out2", "got %lld != exp %lld\n", data->out2, -1LL); in test_skeleton() 49 CHECK(bss->in3 != 0, "in3", "got %d != exp %d\n", bss->in3, 0); in test_skeleton() 50 CHECK(bss->out3 != 0, "out3", "got %d != exp %d\n", bss->out3, 0); in test_skeleton() 51 CHECK(bss->in4 != 0, "in4", "got %lld != exp %lld\n", bss->in4, 0LL); in test_skeleton() 52 CHECK(bss->out4 != 0, "out4", "got %lld != exp %lld\n", bss->out4, 0LL); in test_skeleton() [all …]
|
D | ringbuf.c | 48 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample() 52 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample() 94 if (CHECK(!skel, "skel_open", "skeleton open failed\n")) in test_ringbuf() 100 if (CHECK(err != 0, "skel_load", "skeleton load failed\n")) in test_ringbuf() 154 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf() 158 if (CHECK(err, "skel_attach", "skeleton attachment failed: %d\n", err)) in test_ringbuf() 164 CHECK(skel->bss->avail_data != 3 * rec_sz, in test_ringbuf() 167 CHECK(skel->bss->ring_size != page_size, in test_ringbuf() 170 CHECK(skel->bss->cons_pos != 0, in test_ringbuf() 173 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf() [all …]
|
D | d_path.c | 39 if (CHECK(pipe(pipefd) < 0, "trigger", "pipe failed\n")) in trigger_fstat_events() 43 if (CHECK(sockfd < 0, "trigger", "socket failed\n")) in trigger_fstat_events() 47 if (CHECK(procfd < 0, "trigger", "open /proc/self/comm failed\n")) in trigger_fstat_events() 50 if (CHECK(devfd < 0, "trigger", "open /dev/urandom failed\n")) in trigger_fstat_events() 53 if (CHECK(localfd < 0, "trigger", "open /tmp/d_path_loadgen.txt failed\n")) in trigger_fstat_events() 58 if (CHECK(indicatorfd < 0, "trigger", "open /tmp/ failed\n")) in trigger_fstat_events() 62 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[0]\n")) in trigger_fstat_events() 65 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[1]\n")) in trigger_fstat_events() 68 if (CHECK(ret < 0, "trigger", "set_pathname failed for socket\n")) in trigger_fstat_events() 71 if (CHECK(ret < 0, "trigger", "set_pathname failed for proc\n")) in trigger_fstat_events() [all …]
|
D | ringbuf_multi.c | 23 CHECK(ring != 1, "sample1_ring", "exp %d, got %d\n", 1, ring); in process_sample() 24 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample() 28 CHECK(ring != 2, "sample2_ring", "exp %d, got %d\n", 2, ring); in process_sample() 29 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample() 33 CHECK(true, "extra_sample", "unexpected sample seq %d, val %ld\n", in process_sample() 50 if (CHECK(!skel, "skel_open", "skeleton open failed\n")) in test_ringbuf_multi() 61 if (CHECK(proto_fd < 0, "bpf_map_create", "bpf_map_create failed\n")) in test_ringbuf_multi() 65 if (CHECK(err != 0, "bpf_map__set_inner_map_fd", "bpf_map__set_inner_map_fd failed\n")) in test_ringbuf_multi() 69 if (CHECK(err != 0, "skel_load", "skeleton load failed\n")) in test_ringbuf_multi() 84 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf_multi() [all …]
|
D | xdp_info.c | 18 if (CHECK(err, "get_xdp_none", "errno=%d\n", errno)) in serial_test_xdp_info() 20 if (CHECK(prog_id, "prog_id_none", "unexpected prog_id=%u\n", prog_id)) in serial_test_xdp_info() 24 if (CHECK(err, "get_xdp_none_skb", "errno=%d\n", errno)) in serial_test_xdp_info() 26 if (CHECK(prog_id, "prog_id_none_skb", "unexpected prog_id=%u\n", in serial_test_xdp_info() 37 if (CHECK(err, "get_prog_info", "errno=%d\n", errno)) in serial_test_xdp_info() 41 if (CHECK(err, "set_xdp_skb", "errno=%d\n", errno)) in serial_test_xdp_info() 47 if (CHECK(err, "get_xdp", "errno=%d\n", errno)) in serial_test_xdp_info() 49 if (CHECK(prog_id != info.id, "prog_id", "prog_id not available\n")) in serial_test_xdp_info() 53 if (CHECK(err, "get_xdp_skb", "errno=%d\n", errno)) in serial_test_xdp_info() 55 if (CHECK(prog_id != info.id, "prog_id_skb", "prog_id not available\n")) in serial_test_xdp_info() [all …]
|
D | btf_map_in_map.c | 31 if (CHECK(!skel, "skel_open", "failed to open&load skeleton\n")) in test_lookup_update() 35 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_lookup_update() 54 CHECK(val != 1, "inner1", "got %d != exp %d\n", val, 1); in test_lookup_update() 56 CHECK(val != 2, "inner2", "got %d != exp %d\n", val, 2); in test_lookup_update() 58 CHECK(val != 3, "inner3", "got %d != exp %d\n", val, 3); in test_lookup_update() 67 CHECK(val != 4, "inner1", "got %d != exp %d\n", val, 4); in test_lookup_update() 69 CHECK(val != 3, "inner2", "got %d != exp %d\n", val, 3); in test_lookup_update() 71 CHECK(val != 5, "inner4", "got %d != exp %d\n", val, 5); in test_lookup_update() 78 CHECK(val != 7, "inner5", "got %d != exp %d\n", val, 7); in test_lookup_update() 102 CHECK(map1_id == 0, "map1_id", "failed to get ID 1\n"); in test_lookup_update() [all …]
|
D | mmap.c | 33 if (CHECK(!skel, "skel_open", "skeleton open failed\n")) in test_mmap() 37 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_mmap() 43 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_mmap() 47 if (CHECK(err != 0, "skel_load", "skeleton load failed\n")) in test_mmap() 56 if (CHECK(tmp1 != MAP_FAILED, "rdonly_write_mmap", "unexpected success\n")) { in test_mmap() 62 if (CHECK(tmp1 == MAP_FAILED, "rdonly_read_mmap", "failed: %d\n", errno)) in test_mmap() 68 if (CHECK(err, "map_get_info", "failed %d\n", errno)) in test_mmap() 75 if (CHECK(bss_mmaped == MAP_FAILED, "bss_mmap", in test_mmap() 83 if (CHECK(map_mmaped == MAP_FAILED, "data_mmap", in test_mmap() 102 if (CHECK(err, "attach_raw_tp", "err %d\n", err)) in test_mmap() [all …]
|
D | ksyms.c | 21 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_ksyms() 23 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'bpf_link_fops' not found\n")) in test_ksyms() 27 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_ksyms() 29 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'per_cpu_start' not found\n")) in test_ksyms() 32 if (CHECK(stat(btf_path, &st), "stat_btf", "err %d\n", errno)) in test_ksyms() 37 if (CHECK(!skel, "skel_open", "failed to open and load skeleton\n")) in test_ksyms() 41 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_ksyms() 48 CHECK(data->out__bpf_link_fops != link_fops_addr, "bpf_link_fops", in test_ksyms() 51 CHECK(data->out__bpf_link_fops1 != 0, "bpf_link_fops1", in test_ksyms() 53 CHECK(data->out__btf_size != btf_size, "btf_size", in test_ksyms() [all …]
|
D | perf_branches.c | 18 if (CHECK(!skel->bss->valid, "output not valid", in check_good_sample() 28 CHECK(required_size <= 0, "read_branches_size", "err %d\n", required_size); in check_good_sample() 29 CHECK(written_stack < 0, "read_branches_stack", "err %d\n", written_stack); in check_good_sample() 30 CHECK(written_stack % pbe_size != 0, "read_branches_stack", in check_good_sample() 33 CHECK(written_global < 0, "read_branches_global", "err %d\n", written_global); in check_good_sample() 34 CHECK(written_global % pbe_size != 0, "read_branches_global", in check_good_sample() 37 CHECK(written_global < written_stack, "read_branches_size", in check_good_sample() 48 if (CHECK(!skel->bss->valid, "output not valid", in check_bad_sample() 52 CHECK((required_size != -EINVAL && required_size != -ENOENT), in check_bad_sample() 54 CHECK((written_stack != -EINVAL && written_stack != -ENOENT), in check_bad_sample() [all …]
|
D | cgroup_link.c | 18 if (CHECK(skel->bss->calls != exp_calls, "call_cnt", in ping_and_check() 21 if (CHECK(skel->bss->alt_calls != exp_alt_calls, "alt_call_cnt", in ping_and_check() 47 if (CHECK(!skel, "skel_open_load", "failed to open/load skeleton\n")) in serial_test_cgroup_link() 52 if (CHECK(err, "cg_init", "failed: %d\n", err)) in serial_test_cgroup_link() 62 if (CHECK(err, "cg_join", "fail: %d\n", err)) in serial_test_cgroup_link() 79 if (CHECK(prog_cnt != 1, "effect_cnt", "exp %d, got %d\n", 1, prog_cnt)) in serial_test_cgroup_link() 87 if (CHECK(prog_cnt != cg_nr, "effect_cnt", "exp %d, got %d\n", in serial_test_cgroup_link() 96 if (CHECK(prog_cnt != cg_nr, "effect_cnt", "exp %d, got %d\n", in serial_test_cgroup_link() 100 CHECK(prog_ids[i - 1] != prog_ids[i], "prog_id_check", in serial_test_cgroup_link() 114 if (CHECK(err, "cg_attach_legacy", "errno=%d\n", errno)) in serial_test_cgroup_link() [all …]
|
D | test_local_storage.c | 63 if (CHECK(!err || errno != ENOENT, "bpf_map_lookup_elem", in check_syscall_operations() 69 if (CHECK(err < 0, "bpf_map_update_elem", "err:%d errno:%d\n", err, in check_syscall_operations() 75 if (CHECK(err < 0, "bpf_map_lookup_elem", "err:%d errno:%d", err, in check_syscall_operations() 80 if (CHECK(lookup_val.value != val.value, "bpf_map_lookup_elem", in check_syscall_operations() 85 if (CHECK(err, "bpf_map_delete_elem()", "err:%d errno:%d\n", err, in check_syscall_operations() 91 if (CHECK(!err || errno != ENOENT, "bpf_map_lookup_elem", in check_syscall_operations() 107 if (CHECK(!skel, "skel_load", "lsm skeleton failed\n")) in test_test_local_storage() 111 if (CHECK(err, "attach", "lsm attach failed: %d\n", err)) in test_test_local_storage() 115 if (CHECK(task_fd < 0, "pidfd_open", in test_test_local_storage() 123 if (CHECK(!mkdtemp(tmp_dir_path), "mkdtemp", in test_test_local_storage() [all …]
|
D | perf_buffer.c | 23 CHECK(cpu_data != cpu, "check_cpu_data", in on_sample() 38 if (err && CHECK(err, "set_affinity", "cpu #%d, err %d\n", cpu, err)) in trigger_on_cpu() 57 if (CHECK(nr_cpus < 0, "nr_cpus", "err %d\n", nr_cpus)) in serial_test_perf_buffer() 62 if (CHECK(err, "nr_on_cpus", "err %d\n", err)) in serial_test_perf_buffer() 71 if (CHECK(!skel, "skel_load", "skeleton open/load failed\n")) in serial_test_perf_buffer() 80 if (CHECK(err, "attach_kprobe", "err %d\n", err)) in serial_test_perf_buffer() 89 CHECK(perf_buffer__epoll_fd(pb) < 0, "epoll_fd", in serial_test_perf_buffer() 106 if (CHECK(err < 0, "perf_buffer__poll", "err %d\n", err)) in serial_test_perf_buffer() 109 if (CHECK(CPU_COUNT(&cpu_seen) != nr_on_cpus, "seen_cpu_cnt", in serial_test_perf_buffer() 113 if (CHECK(perf_buffer__buffer_cnt(pb) != nr_on_cpus, "buf_cnt", in serial_test_perf_buffer() [all …]
|
D | ksyms_btf.c | 25 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_basic() 27 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'runqueues' not found\n")) in test_basic() 31 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_basic() 33 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'bpf_prog_active' not found\n")) in test_basic() 37 if (CHECK(!skel, "skel_open", "failed to open and load skeleton\n")) in test_basic() 41 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_basic() 48 CHECK(data->out__runqueues_addr != runqueues_addr, "runqueues_addr", in test_basic() 52 CHECK(data->out__bpf_prog_active_addr != bpf_prog_active_addr, "bpf_prog_active_addr", in test_basic() 57 CHECK(data->out__rq_cpu == -1, "rq_cpu", in test_basic() 59 CHECK(data->out__bpf_prog_active < 0, "bpf_prog_active", in test_basic() [all …]
|
D | link_pinning.c | 25 CHECK(bss->out != 1, "res_check1", "exp %d, got %d\n", 1, bss->out); in test_link_pinning_subtest() 29 if (CHECK(err, "link_pin", "err: %d\n", err)) in test_link_pinning_subtest() 32 CHECK(strcmp(link_pin_path, bpf_link__pin_path(link)), "pin_path1", in test_link_pinning_subtest() 37 if (CHECK(err, "stat_link", "err %d errno %d\n", err, errno)) in test_link_pinning_subtest() 42 CHECK(bss->out != 2, "res_check2", "exp %d, got %d\n", 2, bss->out); in test_link_pinning_subtest() 50 CHECK(bss->out != 3, "res_check3", "exp %d, got %d\n", 3, bss->out); in test_link_pinning_subtest() 57 CHECK(strcmp(link_pin_path, bpf_link__pin_path(link)), "pin_path2", in test_link_pinning_subtest() 62 if (CHECK(err, "link_unpin", "err: %d\n", err)) in test_link_pinning_subtest() 68 CHECK(bss->out != 4, "res_check4", "exp %d, got %d\n", 4, bss->out); in test_link_pinning_subtest() 84 CHECK(i == 10000, "link_attached", "got to iteration #%d\n", i); in test_link_pinning_subtest() [all …]
|
D | btf_skc_cls_ingress.c | 27 if (CHECK(unshare(CLONE_NEWNET), "create netns", in prepare_netns() 32 if (CHECK(system("ip link set dev lo up"), in prepare_netns() 36 if (CHECK(system("tc qdisc add dev lo clsact"), in prepare_netns() 40 if (CHECK(system("tc filter add dev lo ingress bpf direct-action object-pinned " PROG_PIN_FILE), in prepare_netns() 85 if (CHECK(err, "getsockname(listen_fd)", "err:%d errno:%d\n", err, in test_conn() 99 if (CHECK(skel->bss->listen_tp_sport != srv_port || in test_conn() 107 if (CHECK(skel->bss->gen_cookie || skel->bss->recv_cookie, in test_conn() 113 CHECK(skel->bss->linum, "bpf prog detected error", "at line %u\n", in test_conn() 140 if (CHECK(err, "getsockname(listen_fd)", "err:%d errno:%d\n", err, in test_syncookie() 154 if (CHECK(skel->bss->listen_tp_sport != srv_port, in test_syncookie() [all …]
|
D | task_fd_query_rawtp.c | 15 if (CHECK(err, "prog_load raw tp", "err %d errno %d\n", err, errno)) in test_task_fd_query_rawtp() 19 if (CHECK(efd < 0, "raw_tp_open", "err %d errno %d\n", efd, errno)) in test_task_fd_query_rawtp() 26 if (CHECK(err < 0, "bpf_task_fd_query", "err %d errno %d\n", err, in test_task_fd_query_rawtp() 32 if (CHECK(!err, "check_results", "fd_type %d tp_name %s\n", in test_task_fd_query_rawtp() 40 if (CHECK(err < 0, "bpf_task_fd_query (len = 0)", "err %d errno %d\n", in test_task_fd_query_rawtp() 45 if (CHECK(!err, "check_results", "fd_type %d len %u\n", fd_type, len)) in test_task_fd_query_rawtp() 52 if (CHECK(err < 0, "bpf_task_fd_query (buf = 0)", "err %d errno %d\n", in test_task_fd_query_rawtp() 57 if (CHECK(!err, "check_results", "fd_type %d len %u\n", fd_type, len)) in test_task_fd_query_rawtp() 64 if (CHECK(err >= 0 || errno != ENOSPC, "bpf_task_fd_query (len = 3)", in test_task_fd_query_rawtp() 70 if (CHECK(!err, "check_results", "fd_type %d len %u\n", fd_type, len)) in test_task_fd_query_rawtp()
|
/Linux-v6.1/lib/ |
D | percpu_test.c | 5 #define CHECK(native, pcp, expected) \ macro 36 CHECK(l, long_counter, -1); in percpu_test_init() 40 CHECK(l, long_counter, 0); in percpu_test_init() 47 CHECK(ul, ulong_counter, 1); in percpu_test_init() 51 CHECK(ul, ulong_counter, 0); in percpu_test_init() 55 CHECK(ul, ulong_counter, -1); in percpu_test_init() 62 CHECK(ul, ulong_counter, -1); in percpu_test_init() 63 CHECK(ul, ulong_counter, ULONG_MAX); in percpu_test_init() 67 CHECK(l, long_counter, 0xffffffff); in percpu_test_init() 71 CHECK(l, long_counter, (long)0x100000000LL); in percpu_test_init() [all …]
|
D | bitfield_kunit.c | 95 #define CHECK(tp, mask) do { \ macro 105 CHECK(u8, 0x0f); in test_bitfields_variables() 106 CHECK(u8, 0xf0); in test_bitfields_variables() 107 CHECK(u8, 0x38); in test_bitfields_variables() 109 CHECK(u16, 0x0038); in test_bitfields_variables() 110 CHECK(u16, 0x0380); in test_bitfields_variables() 111 CHECK(u16, 0x3800); in test_bitfields_variables() 112 CHECK(u16, 0x8000); in test_bitfields_variables() 114 CHECK(u32, 0x80000000); in test_bitfields_variables() 115 CHECK(u32, 0x7f000000); in test_bitfields_variables() [all …]
|
/Linux-v6.1/tools/perf/dlfilters/ |
D | dlfilter-test-api-v0.c | 132 #define CHECK(x) do { \ macro 156 CHECK(!filt_dat && !called); in start() 167 CHECK(dlargc == 6); in start() 168 CHECK(!strcmp(dlargv[0], "first")); in start() 173 CHECK(!strcmp(dlargv[5], "last")); in start() 202 CHECK(sample->size >= sizeof(struct perf_dlfilter_sample)); in check_sample() 217 CHECK(!sample->raw_data); in check_sample() 219 CHECK(!sample->brstack); in check_sample() 221 CHECK(!sample->raw_callchain); in check_sample() 224 CHECK(!strncmp(sample->event, EVENT_NAME, strlen(EVENT_NAME))); in check_sample() [all …]
|
/Linux-v6.1/include/linux/amba/ |
D | clcd.h | 247 #define CHECK(e,l,h) (var->e < l || var->e > h) in clcdfb_check() macro 248 if (CHECK(right_margin, (5+1), 256) || /* back porch */ in clcdfb_check() 249 CHECK(left_margin, (5+1), 256) || /* front porch */ in clcdfb_check() 250 CHECK(hsync_len, (5+1), 256) || in clcdfb_check() 257 #undef CHECK in clcdfb_check() 270 #define CHECK(e) (var->e != fb->fb.var.e) in clcdfb_check() macro 272 (CHECK(xres) || in clcdfb_check() 273 CHECK(yres) || in clcdfb_check() 274 CHECK(bits_per_pixel) || in clcdfb_check() 275 CHECK(pixclock) || in clcdfb_check() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/map_tests/ |
D | htab_map_batch_ops.c | 38 CHECK(err, "bpf_map_update_batch()", "error:%s\n", strerror(errno)); in map_batch_update() 56 CHECK(keys[i] + 1 + j != bpf_percpu(v[i], j), in map_batch_verify() 62 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify() 72 CHECK(visited[i] != 1, "visited checking", in map_batch_verify() 94 CHECK(map_fd == -1, in __test_map_lookup_and_delete_batch() 104 CHECK(!keys || !values || !visited, "malloc()", in __test_map_lookup_and_delete_batch() 111 CHECK((err && errno != ENOENT), "empty map", in __test_map_lookup_and_delete_batch() 121 CHECK(err, "count = 0", "error: %s\n", strerror(errno)); in __test_map_lookup_and_delete_batch() 129 CHECK((err && errno != ENOENT), "count = max_entries", in __test_map_lookup_and_delete_batch() 131 CHECK(count != max_entries, "count = max_entries", in __test_map_lookup_and_delete_batch() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | get_cgroup_id_user.c | 24 #define CHECK(condition, tag, format...) ({ \ macro 66 if (CHECK(cgroup_fd < 0, "cgroup_setup_and_join", "err %d errno %d\n", cgroup_fd, errno)) in main() 73 if (CHECK(err, "bpf_prog_test_load", "err %d errno %d\n", err, errno)) in main() 77 if (CHECK(cgidmap_fd < 0, "bpf_find_map", "err %d errno %d\n", in main() 82 if (CHECK(pidmap_fd < 0, "bpf_find_map", "err %d errno %d\n", in main() 92 if (CHECK(efd < 0, "open", "err %d errno %d\n", efd, errno)) in main() 96 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", in main() 110 if (CHECK(pmu_fd < 0, "perf_event_open", "err %d errno %d\n", pmu_fd, in main() 115 if (CHECK(err, "perf_event_ioc_enable", "err %d errno %d\n", err, in main() 120 if (CHECK(err, "perf_event_ioc_set_bpf", "err %d errno %d\n", err, in main() [all …]
|