Home
last modified time | relevance | path

Searched refs:btf_obj_fd (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/tools/lib/bpf/
Dlibbpf.c6240 static int libbpf_find_attach_btf_id(struct bpf_program *prog, int *btf_obj_fd, int *btf_type_id);
6254 int btf_obj_fd = 0, btf_type_id = 0; in bpf_program__load() local
6256 err = libbpf_find_attach_btf_id(prog, &btf_obj_fd, &btf_type_id); in bpf_program__load()
6260 prog->attach_btf_obj_fd = btf_obj_fd; in bpf_program__load()
8393 int *btf_obj_fd, int *btf_type_id) in find_kernel_btf_id() argument
8399 *btf_obj_fd = 0; /* vmlinux BTF */ in find_kernel_btf_id()
8415 *btf_obj_fd = mod->fd; in find_kernel_btf_id()
8428 static int libbpf_find_attach_btf_id(struct bpf_program *prog, int *btf_obj_fd, int *btf_type_id) in libbpf_find_attach_btf_id() argument
8463 *btf_obj_fd = 0; in libbpf_find_attach_btf_id()
8471 *btf_obj_fd = 0; in libbpf_find_attach_btf_id()
[all …]
/Linux-v5.15/kernel/bpf/
Dbtf.c6190 int btf_obj_fd; in BPF_CALL_4() local
6192 btf_obj_fd = __btf_new_fd(mod_btf); in BPF_CALL_4()
6193 if (btf_obj_fd < 0) { in BPF_CALL_4()
6195 return btf_obj_fd; in BPF_CALL_4()
6197 return ret | (((u64)btf_obj_fd) << 32); in BPF_CALL_4()