Searched refs:attach_prog_fd (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | fexit_bpf2bpf.c | 293 int err, pkt_fd, attach_prog_fd; in test_fmod_ret_freplace() local 322 attach_prog_fd = bpf_program__fd(prog); in test_fmod_ret_freplace() 324 err = bpf_program__set_attach_target(prog, attach_prog_fd, NULL); in test_fmod_ret_freplace() 435 static int find_prog_btf_id(const char *name, __u32 attach_prog_fd) in find_prog_btf_id() argument 442 ret = bpf_prog_get_info_by_fd(attach_prog_fd, &info, &info_len); in find_prog_btf_id() 459 static int load_fentry(int attach_prog_fd, int attach_btf_id) in load_fentry() argument 463 .attach_prog_fd = attach_prog_fd, in load_fentry()
|
/linux-6.12.1/tools/lib/bpf/ |
D | bpf.c | 244 __u32 log_size, log_level, attach_prog_fd, attach_btf_obj_fd; in bpf_prog_load() local 282 attach_prog_fd = OPTS_GET(opts, attach_prog_fd, 0); in bpf_prog_load() 285 if (attach_prog_fd && attach_btf_obj_fd) in bpf_prog_load() 289 if (attach_prog_fd) in bpf_prog_load() 290 attr.attach_prog_fd = attach_prog_fd; in bpf_prog_load()
|
D | bpf.h | 84 __u32 attach_prog_fd; member
|
D | libbpf.c | 486 __u32 attach_prog_fd; member 3420 if (prog->type == BPF_PROG_TYPE_TRACING && !prog->attach_prog_fd) in prog_needs_vmlinux_btf() 7441 load_attr.attach_prog_fd = prog->attach_prog_fd; in bpf_object_load_prog() 9903 static int libbpf_find_prog_btf_id(const char *name, __u32 attach_prog_fd) in libbpf_find_prog_btf_id() argument 9911 err = bpf_prog_get_info_by_fd(attach_prog_fd, &info, &info_len); in libbpf_find_prog_btf_id() 9914 attach_prog_fd, err); in libbpf_find_prog_btf_id() 9997 __u32 attach_prog_fd = prog->attach_prog_fd; in libbpf_find_attach_btf_id() local 10001 if (prog->type == BPF_PROG_TYPE_EXT || attach_prog_fd) { in libbpf_find_attach_btf_id() 10002 if (!attach_prog_fd) { in libbpf_find_attach_btf_id() 10006 err = libbpf_find_prog_btf_id(attach_name, attach_prog_fd); in libbpf_find_attach_btf_id() [all …]
|
D | libbpf.h | 938 bpf_program__set_attach_target(struct bpf_program *prog, int attach_prog_fd,
|
/linux-6.12.1/include/uapi/linux/ |
D | bpf.h | 1558 __u32 attach_prog_fd; member
|
/linux-6.12.1/tools/include/uapi/linux/ |
D | bpf.h | 1558 __u32 attach_prog_fd; member
|
/linux-6.12.1/kernel/bpf/ |
D | syscall.c | 2712 if (attr->attach_prog_fd) { in bpf_prog_load() 2713 dst_prog = bpf_prog_get(attr->attach_prog_fd); in bpf_prog_load()
|