Searched refs:btf_vmlinux (Results 1 – 5 of 5) sorted by relevance
| /linux/tools/bpf/bpftool/ |
| H A 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 (!btf_vmlinux) in get_btf_vmlinux() 38 return btf_vmlinux; in get_btf_vmlinux() 645 btf__free(btf_vmlinux); in do_struct_ops()
|
| H A D | map.c | 791 static struct btf *btf_vmlinux; variable 798 if (!btf_vmlinux) { in get_map_kv_btf() 799 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf() 800 if (!btf_vmlinux) { in get_map_kv_btf() 805 *btf = btf_vmlinux; in get_map_kv_btf() 821 if (btf != btf_vmlinux) in free_map_kv_btf() 961 btf__free(btf_vmlinux); in do_dump()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 262 struct btf *btf_vmlinux; variable 2897 return btf_vmlinux ?: ERR_PTR(-ENOENT); in find_kfunc_desc_btf() 3006 if (!btf_vmlinux) { in bpf_add_kfunc_call() 6150 if (!btf_vmlinux) { in check_ptr_to_map_access() 6161 t = btf_type_by_id(btf_vmlinux, *map->ops->map_btf_id); in check_ptr_to_map_access() 6162 tname = btf_name_by_offset(btf_vmlinux, t->name_off); in check_ptr_to_map_access() 6185 btf_vmlinux, *map->ops->map_btf_id, 0); in check_ptr_to_map_access() 6193 ret = mark_btf_ld_reg(env, regs, value_regno, ret, btf_vmlinux, btf_id, flag); in check_ptr_to_map_access() 8160 reg->var_off.value, btf_vmlinux, *arg_btf_id, in check_reg_type() 8164 btf_type_name(btf_vmlinux, *arg_btf_id)); in check_reg_type() [all …]
|
| H A D | btf.c | 6042 extern struct btf *btf_vmlinux; 6087 return btf_type_by_id(btf_vmlinux, ctx_type->type); in find_canonical_prog_ctx_type() 6161 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_is_prog_ctx_type() 6186 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_is_prog_ctx_type() 6316 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_validate_prog_ctx_type() 6327 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_validate_prog_ctx_type() 6358 kctx_type = btf_type_by_id(btf_vmlinux, kctx_type_id); in get_kern_ctx_btf_id() 6981 info->btf = ctx_arg_info->btf ? : btf_vmlinux; in btf_ctx_access() 7038 info->btf = btf_vmlinux; in btf_ctx_access()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 525 * btf_vmlinux's format. 734 struct btf *btf_vmlinux; member 1189 kern_btf = mod_btf ? mod_btf->btf : obj->btf_vmlinux; in bpf_map__init_kern_struct_ops() 3592 /* btf_vmlinux could be loaded earlier */ in bpf_object__sanitize_and_load_btf() 3593 if (obj->btf_vmlinux || obj->gen_loader) in bpf_object__sanitize_and_load_btf() 3599 obj->btf_vmlinux = btf__load_vmlinux_btf(); in bpf_object__sanitize_and_load_btf() 3600 err = libbpf_get_error(obj->btf_vmlinux); in bpf_object__sanitize_and_load_btf() 3603 obj->btf_vmlinux = NULL; in bpf_object__sanitize_and_load_btf() 5869 btf = btf_get_from_fd(fd, obj->btf_vmlinux); in bpf_core_find_cands() 5929 main_btf = obj->btf_vmlinux_override ?: obj->btf_vmlinux; in bpf_core_types_are_compat() [all...] |