Searched refs:CHECK_ATTR (Results 1 – 4 of 4) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | skb_ctx.c | 29 if (CHECK_ATTR(err, "load", "err %d errno %d\n", err, errno)) in test_skb_ctx() 36 CHECK_ATTR(err == 0, "ctx_size_in", "err %d errno %d\n", err, errno); in test_skb_ctx() 43 CHECK_ATTR(err == 0, "ctx_size_out", "err %d errno %d\n", err, errno); in test_skb_ctx() 50 CHECK_ATTR(err == 0, "len", "err %d errno %d\n", err, errno); in test_skb_ctx() 55 CHECK_ATTR(err == 0, "tc_index", "err %d errno %d\n", err, errno); in test_skb_ctx() 62 CHECK_ATTR(err == 0, "hash", "err %d errno %d\n", err, errno); in test_skb_ctx() 67 CHECK_ATTR(err == 0, "sk", "err %d errno %d\n", err, errno); in test_skb_ctx() 71 CHECK_ATTR(err != 0 || tattr.retval, in test_skb_ctx() 76 CHECK_ATTR(tattr.ctx_size_out != sizeof(skb), in test_skb_ctx() 82 CHECK_ATTR(skb.cb[i] != i + 2, in test_skb_ctx() [all …]
|
D | prog_run_xattr.c | 20 if (CHECK_ATTR(err, "load", "err %d errno %d\n", err, errno)) in test_prog_run_xattr() 26 CHECK_ATTR(err != -1 || errno != ENOSPC || tattr.retval, "run", in test_prog_run_xattr() 29 CHECK_ATTR(tattr.data_size_out != sizeof(pkt_v4), "data_size_out", in test_prog_run_xattr() 33 CHECK_ATTR(buf[5] != 0, "overflow", in test_prog_run_xattr() 41 CHECK_ATTR(err || errno || tattr.retval, "run_no_output", in test_prog_run_xattr() 46 CHECK_ATTR(err != -EINVAL, "run_wrong_size_out", "err %d\n", err); in test_prog_run_xattr()
|
D | flow_dissector.c | 13 CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \ 474 CHECK_ATTR(tattr.data_size_out != sizeof(flow_keys) || in test_flow_dissector() 517 CHECK_ATTR(err, tests[i].name, "bpf_map_lookup_elem %d\n", err); in test_flow_dissector() 519 CHECK_ATTR(err, tests[i].name, "skb-less err %d\n", err); in test_flow_dissector() 523 CHECK_ATTR(err, tests[i].name, "bpf_map_delete_elem %d\n", err); in test_flow_dissector()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_progs.h | 125 #define CHECK_ATTR(condition, tag, format...) \ macro
|