Home
last modified time | relevance | path

Searched refs:bpf_obj (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dempty_skb.c10 struct empty_skb *bpf_obj = NULL; in test_empty_skb() local
109 bpf_obj = empty_skb__open_and_load(); in test_empty_skb()
110 if (!ASSERT_OK_PTR(bpf_obj, "open skeleton")) in test_empty_skb()
114 bpf_object__for_each_program(prog, bpf_obj->obj) { in test_empty_skb()
126 bpf_obj->bss->ifindex = *tests[i].ifindex; in test_empty_skb()
127 bpf_obj->bss->ret = 0; in test_empty_skb()
137 ASSERT_GE(bpf_obj->bss->ret, 0, buf); in test_empty_skb()
139 ASSERT_EQ(bpf_obj->bss->ret, expected_ret, buf); in test_empty_skb()
144 if (bpf_obj) in test_empty_skb()
145 empty_skb__destroy(bpf_obj); in test_empty_skb()
Dxdp_metadata.c282 struct xdp_metadata *bpf_obj = NULL; in test_xdp_metadata() local
322 bpf_obj = xdp_metadata__open(); in test_xdp_metadata()
323 if (!ASSERT_OK_PTR(bpf_obj, "open skeleton")) in test_xdp_metadata()
326 prog = bpf_object__find_program_by_name(bpf_obj->obj, "rx"); in test_xdp_metadata()
330 if (!ASSERT_OK(xdp_metadata__load(bpf_obj), "load skeleton")) in test_xdp_metadata()
334 prog_arr = bpf_object__find_map_by_name(bpf_obj->obj, "prog_arr"); in test_xdp_metadata()
347 bpf_program__fd(bpf_obj->progs.rx), in test_xdp_metadata()
353 ret = bpf_map_update_elem(bpf_map__fd(bpf_obj->maps.xsk), &queue_id, &sock_fd, 0); in test_xdp_metadata()
402 xdp_metadata__destroy(bpf_obj); in test_xdp_metadata()
/linux-6.6.21/tools/testing/selftests/bpf/
Dxdp_hw_metadata.c49 struct xdp_hw_metadata *bpf_obj; variable
255 ret, errno, bpf_obj->bss->pkts_skip, in verify_metadata()
256 bpf_obj->bss->pkts_fail, bpf_obj->bss->pkts_redir); in verify_metadata()
376 if (bpf_obj) { in cleanup()
377 opts.old_prog_fd = bpf_program__fd(bpf_obj->progs.rx); in cleanup()
389 if (bpf_obj) in cleanup()
390 xdp_hw_metadata__destroy(bpf_obj); in cleanup()
443 bpf_obj = xdp_hw_metadata__open(); in main()
444 if (libbpf_get_error(bpf_obj)) in main()
445 error(1, libbpf_get_error(bpf_obj), "xdp_hw_metadata__open"); in main()
[all …]
Dtest_offload.py238 def bpf_obj(name, sec=".text", path=bpf_test_dir,): function
808 obj = bpf_obj("sample_ret0.bpf.o")
1174 map_obj = bpf_obj("sample_map_ret0.bpf.o")
/linux-6.6.21/tools/testing/selftests/bpf/benchs/
Dbench_local_storage.c95 void *bpf_obj; member
/linux-6.6.21/tools/perf/util/
Devsel.h102 struct bpf_object *bpf_obj; member
Devsel.c282 evsel->bpf_obj = NULL; in evsel__init()
366 if (orig->bpf_obj) in evsel__clone()