Home
last modified time | relevance | path

Searched refs:bpf_prog (Results 1 – 17 of 17) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dxdp_cpumap_attach.c40 val.bpf_prog.fd = prog_fd; in test_xdp_with_cpumap_helpers()
46 ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to cpumap entry prog_id"); in test_xdp_with_cpumap_helpers()
54 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_prog); in test_xdp_with_cpumap_helpers()
63 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_cm_frags); in test_xdp_with_cpumap_helpers()
92 val.bpf_prog.fd = frags_prog_fd; in test_xdp_with_cpumap_frags_helpers()
98 ASSERT_EQ(info.id, val.bpf_prog.id, in test_xdp_with_cpumap_frags_helpers()
106 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_cm); in test_xdp_with_cpumap_frags_helpers()
Dxdp_devmap_attach.c42 val.bpf_prog.fd = dm_fd; in test_xdp_with_devmap_helpers()
48 ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to devmap entry prog_id"); in test_xdp_with_devmap_helpers()
56 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_prog); in test_xdp_with_devmap_helpers()
65 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_dm_frags); in test_xdp_with_devmap_helpers()
105 val.bpf_prog.fd = dm_fd_frags; in test_xdp_with_devmap_frags_helpers()
111 ASSERT_EQ(info.id, val.bpf_prog.id, in test_xdp_with_devmap_frags_helpers()
119 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_dm); in test_xdp_with_devmap_frags_helpers()
Dsyscall.c35 prog_fd = bpf_program__fd(skel->progs.bpf_prog); in test_syscall()
Dfexit_bpf2bpf.c539 value.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_drop_prog); in test_func_replace_progmap()
/tools/testing/selftests/net/
Dpsock_lib.h65 struct sock_fprog bpf_prog; in pair_udp_setfilter() local
67 bpf_prog.filter = bpf_filter; in pair_udp_setfilter()
68 bpf_prog.len = ARRAY_SIZE(bpf_filter); in pair_udp_setfilter()
70 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &bpf_prog, in pair_udp_setfilter()
71 sizeof(bpf_prog))) { in pair_udp_setfilter()
Dpsock_fanout.c118 struct sock_fprog bpf_prog; in sock_fanout_set_cbpf() local
120 bpf_prog.filter = bpf_filter; in sock_fanout_set_cbpf()
121 bpf_prog.len = ARRAY_SIZE(bpf_filter); in sock_fanout_set_cbpf()
123 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &bpf_prog, in sock_fanout_set_cbpf()
124 sizeof(bpf_prog))) { in sock_fanout_set_cbpf()
/tools/testing/selftests/bpf/progs/
Dxdp_features.c25 struct bpf_prog;
227 const struct bpf_prog *xdp, __u32 act) in BPF_PROG()
Dsyscall.c61 int bpf_prog(struct args *ctx) in bpf_prog() function
/tools/bpf/bpftool/skeleton/
Dpid_iter.bpf.c42 return BPF_CORE_READ((struct bpf_prog *)ent, aux, id); in get_obj_id()
/tools/perf/util/
Dbpf-event.c63 dso->bpf_prog.id = id; in machine__process_bpf_event_load()
64 dso->bpf_prog.sub_id = i; in machine__process_bpf_event_load()
65 dso->bpf_prog.env = env; in machine__process_bpf_event_load()
Ddso.c803 node = perf_env__find_bpf_prog_info(dso->bpf_prog.env, dso->bpf_prog.id); in bpf_read()
824 node = perf_env__find_bpf_prog_info(dso->bpf_prog.env, dso->bpf_prog.id); in bpf_size()
Ddso.h210 } bpf_prog; member
Dannotate.c1891 info_node = perf_env__find_bpf_prog_info(dso->bpf_prog.env, in symbol__disassemble_bpf()
1892 dso->bpf_prog.id); in symbol__disassemble_bpf()
1898 sub_id = dso->bpf_prog.sub_id; in symbol__disassemble_bpf()
1909 node = perf_env__find_btf(dso->bpf_prog.env, in symbol__disassemble_bpf()
/tools/testing/selftests/bpf/
Dxdp_redirect_multi.c204 devmap_val.bpf_prog.fd = egress_prog_fd; in main()
Dxdp_features.c316 .bpf_prog.fd = fd, in dut_attach_xdp_prog()
/tools/perf/
Dbuiltin-trace.c1222 } bpf_prog; member
3339 …sc->bpf_prog.sys_enter = trace__find_syscall_bpf_prog(trace, sc, sc->fmt ? sc->fmt->bpf_prog_name.…
3340 …sc->bpf_prog.sys_exit = trace__find_syscall_bpf_prog(trace, sc, sc->fmt ? sc->fmt->bpf_prog_name.…
3346 …return sc ? bpf_program__fd(sc->bpf_prog.sys_enter) : bpf_program__fd(trace->skel->progs.syscall_u…
3352 …return sc ? bpf_program__fd(sc->bpf_prog.sys_exit) : bpf_program__fd(trace->skel->progs.syscall_un…
3377 pair->bpf_prog.sys_enter == trace->skel->progs.syscall_unaugmented)
3431 pair_prog = pair->bpf_prog.sys_enter;
3514 if (sc == NULL || sc->bpf_prog.sys_enter == NULL)
3521 if (sc->bpf_prog.sys_enter != trace->skel->progs.syscall_unaugmented)
3532 sc->bpf_prog.sys_enter = pair_prog;
[all …]
/tools/include/uapi/linux/
Dbpf.h6340 } bpf_prog; member
6353 } bpf_prog; member