Home
last modified time | relevance | path

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

1234567

/tools/testing/selftests/bpf/prog_tests/
Dskeleton.c23 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_skeleton()
26 if (CHECK(skel->kconfig, "skel_kconfig", "kconfig is mmaped()!\n")) in test_skeleton()
34 CHECK(data->in1 != -1, "in1", "got %d != exp %d\n", data->in1, -1); in test_skeleton()
35 CHECK(data->out1 != -1, "out1", "got %d != exp %d\n", data->out1, -1); in test_skeleton()
36 CHECK(data->in2 != -1, "in2", "got %lld != exp %lld\n", data->in2, -1LL); in test_skeleton()
37 CHECK(data->out2 != -1, "out2", "got %lld != exp %lld\n", data->out2, -1LL); in test_skeleton()
39 CHECK(bss->in3 != 0, "in3", "got %d != exp %d\n", bss->in3, 0); in test_skeleton()
40 CHECK(bss->out3 != 0, "out3", "got %d != exp %d\n", bss->out3, 0); in test_skeleton()
41 CHECK(bss->in4 != 0, "in4", "got %lld != exp %lld\n", bss->in4, 0LL); in test_skeleton()
42 CHECK(bss->out4 != 0, "out4", "got %lld != exp %lld\n", bss->out4, 0LL); in test_skeleton()
[all …]
Dcgroup_attach_override.c32 if (CHECK(allow_prog < 0, "prog_load_allow", in test_cgroup_attach_override()
37 if (CHECK(drop_prog < 0, "prog_load_drop", in test_cgroup_attach_override()
42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in test_cgroup_attach_override()
45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
51 if (CHECK(!system(PING_CMD), "ping_fail", in test_cgroup_attach_override()
56 if (CHECK(bar < 0, "cgroup_join_bar", "cgroup setup failed\n")) in test_cgroup_attach_override()
59 if (CHECK(!system(PING_CMD), "ping_fail", in test_cgroup_attach_override()
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
69 if (CHECK(system(PING_CMD), "ping_ok", "ping failed\n")) in test_cgroup_attach_override()
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
[all …]
Dhashmap.c59 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 …]
Dpinning.c18 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 …]
Dringbuf_multi.c23 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()
54 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_ringbuf_multi()
58 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_ringbuf_multi()
62 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_ringbuf_multi()
66 if (CHECK(proto_fd < 0, "bpf_create_map", "bpf_create_map failed\n")) in test_ringbuf_multi()
[all …]
Dksyms_btf.c24 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_basic()
26 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'runqueues' not found\n")) in test_basic()
30 if (CHECK(err == -EINVAL, "kallsyms_fopen", "failed to open: %d\n", errno)) in test_basic()
32 if (CHECK(err == -ENOENT, "ksym_find", "symbol 'bpf_prog_active' not found\n")) in test_basic()
36 if (CHECK(!skel, "skel_open", "failed to open and load skeleton\n")) in test_basic()
40 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_basic()
47 CHECK(data->out__runqueues_addr != runqueues_addr, "runqueues_addr", in test_basic()
51 CHECK(data->out__bpf_prog_active_addr != bpf_prog_active_addr, "bpf_prog_active_addr", in test_basic()
56 CHECK(data->out__rq_cpu == -1, "rq_cpu", in test_basic()
58 CHECK(data->out__bpf_prog_active < 0, "bpf_prog_active", in test_basic()
[all …]
Draw_tp_test_run.c27 if (CHECK(err, "parse_cpu_mask_file", "err %d\n", err)) in test_raw_tp_test_run()
31 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_raw_tp_test_run()
35 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_raw_tp_test_run()
39 if (CHECK(comm_fd < 0, "open /proc/self/comm", "err %d\n", errno)) in test_raw_tp_test_run()
43 CHECK(err < 0, "task rename", "err %d", errno); in test_raw_tp_test_run()
45 CHECK(skel->bss->count == 0, "check_count", "didn't increase\n"); in test_raw_tp_test_run()
46 CHECK(skel->data->on_cpu != 0xffffffff, "check_on_cpu", "got wrong value\n"); in test_raw_tp_test_run()
54 CHECK(err == 0, "test_run", "should fail for too small ctx\n"); in test_raw_tp_test_run()
58 CHECK(err < 0, "test_run", "err %d\n", errno); in test_raw_tp_test_run()
59 CHECK(test_attr.retval != expected_retval, "check_retval", in test_raw_tp_test_run()
[all …]
Dringbuf.c48 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 …]
Dxdp_info.c18 if (CHECK(err, "get_xdp_none", "errno=%d\n", errno)) in test_xdp_info()
20 if (CHECK(prog_id, "prog_id_none", "unexpected prog_id=%u\n", prog_id)) in test_xdp_info()
24 if (CHECK(err, "get_xdp_none_skb", "errno=%d\n", errno)) in test_xdp_info()
26 if (CHECK(prog_id, "prog_id_none_skb", "unexpected prog_id=%u\n", in test_xdp_info()
37 if (CHECK(err, "get_prog_info", "errno=%d\n", errno)) in test_xdp_info()
41 if (CHECK(err, "set_xdp_skb", "errno=%d\n", errno)) in test_xdp_info()
47 if (CHECK(err, "get_xdp", "errno=%d\n", errno)) in test_xdp_info()
49 if (CHECK(prog_id != info.id, "prog_id", "prog_id not available\n")) in test_xdp_info()
53 if (CHECK(err, "get_xdp_skb", "errno=%d\n", errno)) in test_xdp_info()
55 if (CHECK(prog_id != info.id, "prog_id_skb", "prog_id not available\n")) in test_xdp_info()
[all …]
Dksyms.c21 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 …]
Dd_path.c37 if (CHECK(pipe(pipefd) < 0, "trigger", "pipe failed\n")) in trigger_fstat_events()
41 if (CHECK(sockfd < 0, "trigger", "socket failed\n")) in trigger_fstat_events()
45 if (CHECK(procfd < 0, "trigger", "open /proc/self/comm failed\n")) in trigger_fstat_events()
48 if (CHECK(devfd < 0, "trigger", "open /dev/urandom failed\n")) in trigger_fstat_events()
51 if (CHECK(localfd < 0, "trigger", "open /tmp/d_path_loadgen.txt failed\n")) in trigger_fstat_events()
56 if (CHECK(indicatorfd < 0, "trigger", "open /tmp/ failed\n")) in trigger_fstat_events()
60 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[0]\n")) in trigger_fstat_events()
63 if (CHECK(ret < 0, "trigger", "set_pathname failed for pipe[1]\n")) in trigger_fstat_events()
66 if (CHECK(ret < 0, "trigger", "set_pathname failed for socket\n")) in trigger_fstat_events()
69 if (CHECK(ret < 0, "trigger", "set_pathname failed for proc\n")) in trigger_fstat_events()
[all …]
Dxdp_link.c21 if (CHECK(!skel1, "skel_load", "skeleton open and load failed\n")) in test_xdp_link()
26 if (CHECK(!skel2, "skel_load", "skeleton open and load failed\n")) in test_xdp_link()
32 if (CHECK(err, "fd_info1", "failed %d\n", -errno)) in test_xdp_link()
38 if (CHECK(err, "fd_info2", "failed %d\n", -errno)) in test_xdp_link()
44 if (CHECK(err, "fd_attach", "initial prog attach failed: %d\n", err)) in test_xdp_link()
49 CHECK(err || id0 != id1, "id1_check", in test_xdp_link()
65 if (CHECK(err, "prog_detach", "failed %d\n", err)) in test_xdp_link()
76 if (CHECK(err || id0 != id1, "id1_check", in test_xdp_link()
83 if (CHECK(!err, "prog_attach_fail", "unexpected success\n")) in test_xdp_link()
88 if (CHECK(!err, "prog_update_fail", "unexpected success\n")) in test_xdp_link()
[all …]
Dbpf_iter.c37 if (CHECK(skel, "bpf_iter_test_kern3__open_and_load", in test_btf_id_or_null()
55 if (CHECK(iter_fd < 0, "create_iter", "create_iter failed\n")) in do_dummy_read()
61 CHECK(len < 0, "read", "read failed: %s\n", strerror(errno)); in do_dummy_read()
90 if (CHECK(!skel, "bpf_iter_ipv6_route__open_and_load", in test_ipv6_route()
104 if (CHECK(!skel, "bpf_iter_netlink__open_and_load", in test_netlink()
118 if (CHECK(!skel, "bpf_iter_bpf_map__open_and_load", in test_bpf_map()
132 if (CHECK(!skel, "bpf_iter_task__open_and_load", in test_task()
146 if (CHECK(!skel, "bpf_iter_task_stack__open_and_load", in test_task_stack()
170 if (CHECK(!skel, "bpf_iter_task_file__open_and_load", in test_task_file()
176 if (CHECK(pthread_create(&thread_id, NULL, &do_nothing, NULL), in test_task_file()
[all …]
Dtest_bpffs.c35 if (CHECK(err, "unshare", "failed: %d\n", errno)) in fn()
39 if (CHECK(err, "mount /", "failed: %d\n", errno)) in fn()
43 if (CHECK(err, "umount " TDIR, "failed: %d\n", errno)) in fn()
47 if (CHECK(err, "mount", "mount root failed: %d\n", errno)) in fn()
51 if (CHECK(err, "mkdir "TDIR"/fs1", "failed: %d\n", errno)) in fn()
54 if (CHECK(err, "mkdir "TDIR"/fs2", "failed: %d\n", errno)) in fn()
58 if (CHECK(err, "mount bpffs "TDIR"/fs1", "failed: %d\n", errno)) in fn()
61 if (CHECK(err, "mount bpffs " TDIR "/fs2", "failed: %d\n", errno)) in fn()
65 if (CHECK(err, "reading " TDIR "/fs1/maps.debug", "failed\n")) in fn()
68 if (CHECK(err, "reading " TDIR "/fs2/progs.debug", "failed\n")) in fn()
[all …]
Dkfree_skb.c24 if (CHECK(size != 72 + sizeof(*meta), "check_size", "size %u != %zu\n", in on_sample()
27 if (CHECK(meta->ifindex != 1, "check_meta_ifindex", in on_sample()
31 if (CHECK(meta->cb8_0 != cb.cb8[0], "check_cb8_0", "cb8_0 %x != %x\n", in on_sample()
34 if (CHECK(meta->cb32_0 != cb.cb32[0], "check_cb32_0", in on_sample()
38 if (CHECK(pkt_v6->eth.h_proto != 0xdd86, "check_eth", in on_sample()
41 if (CHECK(pkt_v6->iph.nexthdr != 6, "check_ip", in on_sample()
44 if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp", in on_sample()
78 if (CHECK(err, "prog_load sched cls", "err %d errno %d\n", err, errno)) in test_kfree_skb()
82 if (CHECK(err, "prog_load raw tp", "err %d errno %d\n", err, errno)) in test_kfree_skb()
86 if (CHECK(!prog, "find_prog", "prog kfree_skb not found\n")) in test_kfree_skb()
[all …]
Dbtf_map_in_map.c31 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 …]
Dperf_branches.c18 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 …]
Dtrace_ext.c31 if (CHECK(!skel_pkt, "setup", "classifier/test_pkt_md_access open failed\n")) in test_trace_ext()
35 if (CHECK(err, "setup", "classifier/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext()
43 if (CHECK(!skel_ext, "setup", "freplace/test_pkt_md_access open failed\n")) in test_trace_ext()
52 if (CHECK(err, "setup", "freplace/test_pkt_md_access load failed\n")) { in test_trace_ext()
59 if (CHECK(err, "setup", "freplace/test_pkt_md_access attach failed: %d\n", err)) in test_trace_ext()
67 if (CHECK(!skel_trace, "setup", "tracing/test_pkt_md_access_new open failed\n")) in test_trace_ext()
80 if (CHECK(err, "setup", "tracing/test_pkt_md_access_new load failed\n")) { in test_trace_ext()
87 if (CHECK(err, "setup", "tracing/test_pkt_md_access_new attach failed: %d\n", err)) in test_trace_ext()
93 CHECK(err || retval, "run", "err %d errno %d retval %d\n", err, errno, retval); in test_trace_ext()
100 CHECK(bss_ext->ext_called == 0, in test_trace_ext()
[all …]
Dperf_buffer.c23 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 test_perf_buffer()
62 if (CHECK(err, "nr_on_cpus", "err %d\n", err)) in test_perf_buffer()
71 if (CHECK(!skel, "skel_load", "skeleton open/load failed\n")) in test_perf_buffer()
76 if (CHECK(err, "attach_kprobe", "err %d\n", err)) in test_perf_buffer()
86 CHECK(perf_buffer__epoll_fd(pb) < 0, "epoll_fd", in test_perf_buffer()
103 if (CHECK(err < 0, "perf_buffer__poll", "err %d\n", err)) in test_perf_buffer()
106 if (CHECK(CPU_COUNT(&cpu_seen) != nr_on_cpus, "seen_cpu_cnt", in test_perf_buffer()
110 if (CHECK(perf_buffer__buffer_cnt(pb) != nr_on_cpus, "buf_cnt", in test_perf_buffer()
[all …]
Dautoload.c15 if (CHECK(skel, "skel_open_and_load", "unexpected success\n")) in test_autoload()
19 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_autoload()
26 if (CHECK(err, "skel_load", "failed to load skeleton: %d\n", err)) in test_autoload()
30 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_autoload()
35 CHECK(!skel->bss->prog1_called, "prog1", "not called\n"); in test_autoload()
36 CHECK(!skel->bss->prog2_called, "prog2", "not called\n"); in test_autoload()
37 CHECK(skel->bss->prog3_called, "prog3", "called?!\n"); in test_autoload()
Dvmlinux.c24 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_vmlinux()
29 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_vmlinux()
35 CHECK(!bss->tp_called, "tp", "not called\n"); in test_vmlinux()
36 CHECK(!bss->raw_tp_called, "raw_tp", "not called\n"); in test_vmlinux()
37 CHECK(!bss->tp_btf_called, "tp_btf", "not called\n"); in test_vmlinux()
38 CHECK(!bss->kprobe_called, "kprobe", "not called\n"); in test_vmlinux()
39 CHECK(!bss->fentry_called, "fentry", "not called\n"); in test_vmlinux()
Dlink_pinning.c25 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 …]
Dendian.c24 if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) in test_endian()
33 if (CHECK(err, "skel_attach", "skeleton attach failed: %d\n", err)) in test_endian()
38 CHECK(bss->out16 != OUT16, "out16", "got 0x%llx != exp 0x%llx\n", in test_endian()
40 CHECK(bss->out32 != OUT32, "out32", "got 0x%llx != exp 0x%llx\n", in test_endian()
42 CHECK(bss->out64 != OUT64, "out16", "got 0x%llx != exp 0x%llx\n", in test_endian()
45 CHECK(bss->const16 != OUT16, "const16", "got 0x%llx != exp 0x%llx\n", in test_endian()
47 CHECK(bss->const32 != OUT32, "const32", "got 0x%llx != exp 0x%llx\n", in test_endian()
49 CHECK(bss->const64 != OUT64, "const64", "got 0x%llx != exp 0x%llx\n", in test_endian()
Dmodify_return.c23 if (CHECK(!skel, "skel_load", "modify_return skeleton failed\n")) in run_test()
27 if (CHECK(err, "modify_return", "attach failed: %d\n", err)) in run_test()
35 CHECK(err, "test_run", "err %d errno %d\n", err, errno); in run_test()
40 CHECK(ret != want_ret, "test_run", in run_test()
42 CHECK(side_effect != want_side_effect, "modify_return", in run_test()
45 CHECK(skel->bss->fentry_result != 1, "modify_return", in run_test()
47 CHECK(skel->bss->fexit_result != 1, "modify_return", in run_test()
49 CHECK(skel->bss->fmod_ret_result != 1, "modify_return", in run_test()
/tools/perf/dlfilters/
Ddlfilter-test-api-v0.c132 #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 …]

1234567