Home
last modified time | relevance | path

Searched refs:CHECK_ATTR (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
A Dskb_ctx.c37 if (CHECK_ATTR(err, "load", "err %d errno %d\n", err, errno)) in test_skb_ctx()
58 CHECK_ATTR(err == 0, "len", "err %d errno %d\n", err, errno); in test_skb_ctx()
75 CHECK_ATTR(err == 0, "sk", "err %d errno %d\n", err, errno); in test_skb_ctx()
79 CHECK_ATTR(err != 0 || tattr.retval, in test_skb_ctx()
84 CHECK_ATTR(tattr.ctx_size_out != sizeof(skb), in test_skb_ctx()
90 CHECK_ATTR(skb.cb[i] != i + 2, in test_skb_ctx()
94 CHECK_ATTR(skb.priority != 7, in test_skb_ctx()
98 CHECK_ATTR(skb.ifindex != 1, in test_skb_ctx()
102 CHECK_ATTR(skb.ingress_ifindex != 11, in test_skb_ctx()
106 CHECK_ATTR(skb.tstamp != 8, in test_skb_ctx()
[all …]
A Dprog_run_xattr.c39 if (CHECK_ATTR(stats_fd < 0, "enable_stats", "failed %d\n", errno)) in test_prog_run_xattr()
43 if (CHECK_ATTR(!skel, "open_and_load", "failed\n")) in test_prog_run_xattr()
49 CHECK_ATTR(err >= 0 || errno != ENOSPC || tattr.retval, "run", in test_prog_run_xattr()
52 CHECK_ATTR(tattr.data_size_out != sizeof(pkt_v4), "data_size_out", in test_prog_run_xattr()
56 CHECK_ATTR(buf[5] != 0, "overflow", in test_prog_run_xattr()
68 CHECK_ATTR(err || errno || tattr.retval, "run_no_output", in test_prog_run_xattr()
73 CHECK_ATTR(err != -EINVAL, "run_wrong_size_out", "err %d\n", err); in test_prog_run_xattr()
A Dxdp_adjust_tail.c79 if (CHECK_ATTR(err, "load", "err %d errno %d\n", err, errno)) in test_xdp_adjust_tail_grow2()
89 CHECK_ATTR(errno != ENOSPC /* Due limit copy_size in bpf_test_finish */ in test_xdp_adjust_tail_grow2()
97 CHECK_ATTR(tattr.data_size_out != 192 in test_xdp_adjust_tail_grow2()
112 CHECK_ATTR(err in test_xdp_adjust_tail_grow2()
124 CHECK_ATTR((cnt != (max_grow - tattr.data_size_in)) /* Grow increase */ in test_xdp_adjust_tail_grow2()
A Dskb_helpers.c25 if (CHECK_ATTR(err, "load", "err %d errno %d\n", err, errno)) in test_skb_helpers()
28 CHECK_ATTR(err, "len", "err %d errno %d\n", err, errno); in test_skb_helpers()
A Dflow_dissector.c16 CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \
506 CHECK_ATTR(err, tests[i].name, "bpf_map_lookup_elem %d\n", err); in run_tests_skb_less()
508 CHECK_ATTR(err, tests[i].name, "skb-less err %d\n", err); in run_tests_skb_less()
512 CHECK_ATTR(err, tests[i].name, "bpf_map_delete_elem %d\n", err); in run_tests_skb_less()
591 CHECK_ATTR(tattr.data_size_out != sizeof(flow_keys) || in test_flow_dissector()
A Dcheck_mtu.c97 CHECK_ATTR(err != 0, "bpf_prog_test_run", in test_check_mtu_run_xdp()
157 CHECK_ATTR(err != 0, "bpf_prog_test_run", in test_check_mtu_run_tc()
A Dsockmap_basic.c177 if (CHECK_ATTR(err || !tattr.retval, "bpf_prog_test_run", in test_sockmap_update()
/linux/kernel/bpf/
A Dsyscall.c731 #define CHECK_ATTR(CMD) \ macro
838 err = CHECK_ATTR(BPF_MAP_CREATE); in map_create()
1627 if (CHECK_ATTR(BPF_MAP_FREEZE)) in map_freeze()
2212 if (CHECK_ATTR(BPF_PROG_LOAD)) in bpf_prog_load()
3198 if (CHECK_ATTR(BPF_PROG_ATTACH)) in bpf_prog_attach()
3252 if (CHECK_ATTR(BPF_PROG_DETACH)) in bpf_prog_detach()
3285 if (CHECK_ATTR(BPF_PROG_QUERY)) in bpf_prog_query()
4032 if (CHECK_ATTR(BPF_BTF_LOAD)) in bpf_btf_load()
4195 if (CHECK_ATTR(BPF_MAP_BATCH)) in bpf_map_do_batch()
4251 if (CHECK_ATTR(BPF_LINK_CREATE)) in link_create()
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_progs.h164 #define CHECK_ATTR(condition, tag, format...) \ macro

Completed in 22 milliseconds