Home
last modified time | relevance | path

Searched refs:bpf_program__fd (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.4/tools/testing/selftests/bpf/
Dflow_dissector_load.h30 *prog_fd = bpf_program__fd(main_prog); in bpf_flow_load()
54 fd = bpf_program__fd(prog); in bpf_flow_load()
Dtest_socket_cookie.c159 err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, in run_test()
Dxdping.c185 prog_fd = bpf_program__fd(main_prog); in main()
Dtest_sock_fields.c446 ingress_fd = bpf_program__fd(ingress_prog); in main()
Dtest_select_reuseport.c111 select_by_skb_data_prog = bpf_program__fd(prog); in prepare_bpf_obj()
Dtest_sockmap.c1644 prog_fd[i] = bpf_program__fd(prog); in populate_progs()
Dtest_btf.c4165 prog_fd = bpf_program__fd(prog); in do_test_file()
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dsockopt_multi.c24 err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, in prog_attach()
49 err = bpf_prog_detach2(bpf_program__fd(prog), cgroup_fd, in prog_detach()
Dsockopt_sk.c153 err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, in prog_attach()
Dsockopt_inherit.c158 err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, in prog_attach()
/Linux-v5.4/samples/bpf/
Dxdp_fwd_user.c125 prog_fd = bpf_program__fd(prog); in main()
Dxdp_redirect_map_user.c165 dummy_prog_fd = bpf_program__fd(dummy_prog); in main()
Dxdp_redirect_user.c166 dummy_prog_fd = bpf_program__fd(dummy_prog); in main()
Dxdp_redirect_cpu_user.c755 prog_fd = bpf_program__fd(prog); in main()
/Linux-v5.4/tools/lib/bpf/
Dlibbpf.map69 bpf_program__fd;
Dlibbpf.h158 LIBBPF_API int bpf_program__fd(const struct bpf_program *prog);
Dlibbpf.c4360 int bpf_program__fd(const struct bpf_program *prog) in bpf_program__fd() function
4872 *prog_fd = bpf_program__fd(first_prog); in bpf_prog_load_xattr()
4923 prog_fd = bpf_program__fd(prog); in bpf_program__attach_perf_event()
5217 prog_fd = bpf_program__fd(prog); in bpf_program__attach_raw_tracepoint()
/Linux-v5.4/tools/perf/util/
Dbpf-loader.c768 fd = bpf_program__fd(prog); in bpf__foreach_event()
786 fd = bpf_program__fd(prog); in bpf__foreach_event()
/Linux-v5.4/tools/perf/
Dbuiltin-trace.c2844 …return sc ? bpf_program__fd(sc->bpf_prog.sys_enter) : bpf_program__fd(trace->syscalls.unaugmented_… in trace__bpf_prog_sys_enter_fd()
2850 …return sc ? bpf_program__fd(sc->bpf_prog.sys_exit) : bpf_program__fd(trace->syscalls.unaugmented_p… in trace__bpf_prog_sys_exit_fd()
3097 prog_fd = bpf_program__fd(sc->bpf_prog.sys_enter); in trace__init_syscalls_bpf_prog_array_maps()
/Linux-v5.4/tools/bpf/bpftool/
Dprog.c1328 err = bpf_obj_pin(bpf_program__fd(prog), pinfile); in load_with_options()