Searched refs:bpf_obj (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | empty_skb.c | 10 struct empty_skb *bpf_obj = NULL; in test_empty_skb() local 111 bpf_obj = empty_skb__open_and_load(); in test_empty_skb() 112 if (!ASSERT_OK_PTR(bpf_obj, "open skeleton")) in test_empty_skb() 116 bpf_object__for_each_program(prog, bpf_obj->obj) { in test_empty_skb() 128 bpf_obj->bss->ifindex = *tests[i].ifindex; in test_empty_skb() 129 bpf_obj->bss->ret = 0; in test_empty_skb() 139 ASSERT_GE(bpf_obj->bss->ret, 0, buf); in test_empty_skb() 141 ASSERT_EQ(bpf_obj->bss->ret, expected_ret, buf); in test_empty_skb() 146 if (bpf_obj) in test_empty_skb() 147 empty_skb__destroy(bpf_obj); in test_empty_skb()
|
D | xdp_metadata.c | 369 struct xdp_metadata *bpf_obj = NULL; in test_xdp_metadata() local 421 bpf_obj = xdp_metadata__open(); in test_xdp_metadata() 422 if (!ASSERT_OK_PTR(bpf_obj, "open skeleton")) in test_xdp_metadata() 425 prog = bpf_object__find_program_by_name(bpf_obj->obj, "rx"); in test_xdp_metadata() 429 if (!ASSERT_OK(xdp_metadata__load(bpf_obj), "load skeleton")) in test_xdp_metadata() 433 prog_arr = bpf_object__find_map_by_name(bpf_obj->obj, "prog_arr"); in test_xdp_metadata() 446 bpf_program__fd(bpf_obj->progs.rx), in test_xdp_metadata() 452 ret = bpf_map_update_elem(bpf_map__fd(bpf_obj->maps.xsk), &queue_id, &sock_fd, 0); in test_xdp_metadata() 537 xdp_metadata__destroy(bpf_obj); in test_xdp_metadata()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | xdp_hw_metadata.c | 58 struct xdp_hw_metadata *bpf_obj; variable 436 ret, errno, bpf_obj->bss->pkts_skip, in verify_metadata() 437 bpf_obj->bss->pkts_fail, bpf_obj->bss->pkts_redir); in verify_metadata() 569 if (bpf_obj) { in cleanup() 570 opts.old_prog_fd = bpf_program__fd(bpf_obj->progs.rx); in cleanup() 582 if (bpf_obj) in cleanup() 583 xdp_hw_metadata__destroy(bpf_obj); in cleanup() 690 bpf_obj = xdp_hw_metadata__open(); in main() 691 if (libbpf_get_error(bpf_obj)) in main() 692 error(1, libbpf_get_error(bpf_obj), "xdp_hw_metadata__open"); in main() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/benchs/ |
D | bench_local_storage.c | 95 void *bpf_obj; member
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | bpf_offload.py | 245 def bpf_obj(name, sec="xdp", path=bpf_test_dir,): function 744 obj = bpf_obj("sample_ret0.bpf.o") 1110 map_obj = bpf_obj("sample_map_ret0.bpf.o")
|
/linux-6.12.1/tools/perf/util/ |
D | evsel.h | 103 struct bpf_object *bpf_obj; member
|
D | evsel.c | 287 evsel->bpf_obj = NULL; in evsel__init() 371 if (orig->bpf_obj) in evsel__clone()
|