/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_cpumap_attach.c | 40 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()
|
D | xdp_devmap_attach.c | 42 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()
|
D | syscall.c | 35 prog_fd = bpf_program__fd(skel->progs.bpf_prog); in test_syscall()
|
D | fexit_bpf2bpf.c | 539 value.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_drop_prog); in test_func_replace_progmap()
|
/tools/testing/selftests/net/ |
D | psock_lib.h | 65 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()
|
D | psock_fanout.c | 118 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/ |
D | xdp_features.c | 25 struct bpf_prog; 227 const struct bpf_prog *xdp, __u32 act) in BPF_PROG()
|
D | syscall.c | 61 int bpf_prog(struct args *ctx) in bpf_prog() function
|
/tools/bpf/bpftool/skeleton/ |
D | pid_iter.bpf.c | 42 return BPF_CORE_READ((struct bpf_prog *)ent, aux, id); in get_obj_id()
|
/tools/perf/util/ |
D | bpf-event.c | 63 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()
|
D | dso.c | 803 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()
|
D | dso.h | 210 } bpf_prog; member
|
D | annotate.c | 1891 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/ |
D | xdp_redirect_multi.c | 204 devmap_val.bpf_prog.fd = egress_prog_fd; in main()
|
D | xdp_features.c | 316 .bpf_prog.fd = fd, in dut_attach_xdp_prog()
|
/tools/perf/ |
D | builtin-trace.c | 1222 } 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/ |
D | bpf.h | 6340 } bpf_prog; member 6353 } bpf_prog; member
|