Searched refs:attach_prog_fd (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | fexit_bpf2bpf.c | 291 int err, pkt_fd, attach_prog_fd; in test_fmod_ret_freplace() local 320 attach_prog_fd = bpf_program__fd(prog); in test_fmod_ret_freplace() 322 err = bpf_program__set_attach_target(prog, attach_prog_fd, NULL); in test_fmod_ret_freplace() 411 static int find_prog_btf_id(const char *name, __u32 attach_prog_fd) in find_prog_btf_id() argument 418 ret = bpf_obj_get_info_by_fd(attach_prog_fd, &info, &info_len); in find_prog_btf_id() 435 static int load_fentry(int attach_prog_fd, int attach_btf_id) in load_fentry() argument 439 .attach_prog_fd = attach_prog_fd, in load_fentry()
|
/linux-6.1.9/tools/lib/bpf/ |
D | bpf.c | 238 __u32 log_size, log_level, attach_prog_fd, attach_btf_obj_fd; in bpf_prog_load() local 275 attach_prog_fd = OPTS_GET(opts, attach_prog_fd, 0); in bpf_prog_load() 278 if (attach_prog_fd && attach_btf_obj_fd) in bpf_prog_load() 282 if (attach_prog_fd) in bpf_prog_load() 283 attr.attach_prog_fd = attach_prog_fd; in bpf_prog_load()
|
D | bpf.h | 80 __u32 attach_prog_fd; member
|
D | libbpf.c | 429 __u32 attach_prog_fd; member 2959 if (prog->type == BPF_PROG_TYPE_TRACING && !prog->attach_prog_fd) in prog_needs_vmlinux_btf() 6748 load_attr.attach_prog_fd = prog->attach_prog_fd; in bpf_object_load_prog() 9007 static int libbpf_find_prog_btf_id(const char *name, __u32 attach_prog_fd) in libbpf_find_prog_btf_id() argument 9015 err = bpf_obj_get_info_by_fd(attach_prog_fd, &info, &info_len); in libbpf_find_prog_btf_id() 9018 attach_prog_fd, err); in libbpf_find_prog_btf_id() 9084 __u32 attach_prog_fd = prog->attach_prog_fd; in libbpf_find_attach_btf_id() local 9088 if (prog->type == BPF_PROG_TYPE_EXT || attach_prog_fd) { in libbpf_find_attach_btf_id() 9089 if (!attach_prog_fd) { in libbpf_find_attach_btf_id() 9093 err = libbpf_find_prog_btf_id(attach_name, attach_prog_fd); in libbpf_find_attach_btf_id() [all …]
|
D | libbpf.h | 725 bpf_program__set_attach_target(struct bpf_program *prog, int attach_prog_fd,
|
/linux-6.1.9/tools/include/uapi/linux/ |
D | bpf.h | 1385 __u32 attach_prog_fd; member
|
/linux-6.1.9/include/uapi/linux/ |
D | bpf.h | 1385 __u32 attach_prog_fd; member
|
/linux-6.1.9/kernel/bpf/ |
D | syscall.c | 2512 if (attr->attach_prog_fd) { in bpf_prog_load() 2513 dst_prog = bpf_prog_get(attr->attach_prog_fd); in bpf_prog_load()
|