Searched refs:btf_vmlinux (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.15/tools/bpf/bpftool/ |
D | struct_ops.c | 21 static struct btf *btf_vmlinux; variable 31 if (btf_vmlinux) in get_btf_vmlinux() 32 return btf_vmlinux; in get_btf_vmlinux() 34 btf_vmlinux = libbpf_find_kernel_btf(); in get_btf_vmlinux() 35 if (IS_ERR(btf_vmlinux)) in get_btf_vmlinux() 38 return btf_vmlinux; in get_btf_vmlinux() 599 if (!IS_ERR(btf_vmlinux)) in do_struct_ops() 600 btf__free(btf_vmlinux); in do_struct_ops()
|
D | map.c | 794 static struct btf *btf_vmlinux; variable 801 if (!btf_vmlinux) { in get_map_kv_btf() 802 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf() 803 if (IS_ERR(btf_vmlinux)) in get_map_kv_btf() 806 return btf_vmlinux; in get_map_kv_btf() 823 if (!IS_ERR(btf) && btf != btf_vmlinux) in free_map_kv_btf() 829 if (!IS_ERR(btf_vmlinux)) in free_btf_vmlinux() 830 btf__free(btf_vmlinux); in free_btf_vmlinux()
|
/Linux-v5.15/kernel/bpf/ |
D | bpf_struct_ops.c | 199 extern struct btf *btf_vmlinux; 206 if (!value_id || !btf_vmlinux) in bpf_struct_ops_find_value() 221 if (!type_id || !btf_vmlinux) in bpf_struct_ops_find() 301 mtype = btf_type_by_id(btf_vmlinux, member->type); in check_zero_holes() 302 mtype = btf_resolve_size(btf_vmlinux, mtype, &msize); in check_zero_holes() 374 ptype = btf_type_resolve_ptr(btf_vmlinux, member->type, NULL); in bpf_struct_ops_map_update_elem() 399 mtype = btf_type_by_id(btf_vmlinux, member->type); in bpf_struct_ops_map_update_elem() 400 mtype = btf_resolve_size(btf_vmlinux, mtype, &msize); in bpf_struct_ops_map_update_elem() 524 btf_type_seq_show(btf_vmlinux, map->btf_vmlinux_value_type_id, in bpf_struct_ops_map_seq_show_elem()
|
D | verifier.c | 267 struct btf *btf_vmlinux; variable 1676 if (!btf_vmlinux) { in add_kfunc_call() 1710 func = btf_type_by_id(btf_vmlinux, func_id); in add_kfunc_call() 1716 func_proto = btf_type_by_id(btf_vmlinux, func->type); in add_kfunc_call() 1723 func_name = btf_name_by_offset(btf_vmlinux, func->name_off); in add_kfunc_call() 1734 err = btf_distill_func_proto(&env->log, btf_vmlinux, in add_kfunc_call() 2159 func = btf_type_by_id(btf_vmlinux, insn->imm); in disasm_kfunc_name() 2160 return btf_name_by_offset(btf_vmlinux, func->name_off); in disasm_kfunc_name() 3983 if (!btf_vmlinux) { in check_ptr_to_map_access() 3994 t = btf_type_by_id(btf_vmlinux, *map->ops->map_btf_id); in check_ptr_to_map_access() [all …]
|
D | btf.c | 4395 extern struct btf *btf_vmlinux; 4463 ctx_struct = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_get_prog_ctx_type() 4467 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_struct->name_off); in btf_get_prog_ctx_type() 4834 info->btf = btf_vmlinux; in btf_ctx_access() 4851 info->btf = btf_vmlinux; in btf_ctx_access() 5513 reg_btf = btf_vmlinux; in btf_check_func_arg_match()
|
/Linux-v5.15/net/ipv4/ |
D | bpf_tcp_ca.c | 77 extern struct btf *btf_vmlinux; 298 if (!btf_type_resolve_func_ptr(btf_vmlinux, member->type, NULL)) in bpf_tcp_ca_init_member()
|
/Linux-v5.15/net/core/ |
D | bpf_sk_storage.c | 384 const struct btf *btf_vmlinux; in bpf_sk_storage_tracing_allowed() local 403 btf_vmlinux = bpf_get_btf_vmlinux(); in bpf_sk_storage_tracing_allowed() 405 t = btf_type_by_id(btf_vmlinux, btf_id); in bpf_sk_storage_tracing_allowed() 406 tname = btf_name_by_offset(btf_vmlinux, t->name_off); in bpf_sk_storage_tracing_allowed()
|
/Linux-v5.15/tools/lib/bpf/ |
D | libbpf.c | 502 struct btf *btf_vmlinux; member 998 obj->btf_vmlinux); in bpf_object__init_kern_struct_ops_maps() 2679 if (obj->btf_vmlinux || obj->gen_loader) in bpf_object__load_vmlinux_btf() 2685 obj->btf_vmlinux = btf__load_vmlinux_btf(); in bpf_object__load_vmlinux_btf() 2686 err = libbpf_get_error(obj->btf_vmlinux); in bpf_object__load_vmlinux_btf() 2689 obj->btf_vmlinux = NULL; in bpf_object__load_vmlinux_btf() 4912 btf = btf_get_from_fd(fd, obj->btf_vmlinux); in load_module_btfs() 4969 main_btf = obj->btf_vmlinux_override ?: obj->btf_vmlinux; in bpf_core_find_cands() 4991 btf__get_nr_types(obj->btf_vmlinux) + 1, in bpf_core_find_cands() 6629 btf = obj->btf_vmlinux; in find_ksym_btf_id() [all …]
|