Searched refs:btf_vmlinux (Results 1 – 7 of 7) sorted by relevance
| /linux/tools/bpf/bpftool/ |
| H A D | cgroup.c | 78 static struct btf *btf_vmlinux; variable 83 btf__free(btf_vmlinux); in free_btf_vmlinux() 84 btf_vmlinux = NULL; in free_btf_vmlinux() 221 if (btf_vmlinux) { in count_attached_bpf_progs() 226 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { 228 btf__type_by_id(btf_vmlinux, info.attach_btf_id); in cgroup_has_attached_progs() 230 btf__name_by_offset(btf_vmlinux, t->name_off); in cgroup_has_attached_progs() 424 btf_vmlinux = libbpf_find_kernel_btf(); in do_show_tree_fn() 490 if (!btf_vmlinux) in find_cgroup_root() 491 btf_vmlinux in find_cgroup_root() [all...] |
| 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() 646 btf_vmlinux = NULL; in do_struct_ops()
|
| H A D | map.c | 790 static struct btf *btf_vmlinux; 794 btf__free(btf_vmlinux); in free_btf_vmlinux() 795 btf_vmlinux = NULL; in free_btf_vmlinux() 803 if (!btf_vmlinux) { in get_map_kv_btf() 804 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf() 805 if (!btf_vmlinux) { in get_map_kv_btf() 810 *btf = btf_vmlinux; in get_map_kv_btf() 826 if (btf != btf_vmlinux) in free_map_kv_btf() 789 static struct btf *btf_vmlinux; global() variable
|
| /linux/kernel/bpf/ |
| H A D | bpf_struct_ops.c | 88 extern struct btf *btf_vmlinux; 106 common_value_type = btf_type_by_id(btf_vmlinux, in is_valid_value_type() 791 module_type = btf_type_by_id(btf_vmlinux, st_ops_ids[IDX_MODULE_ID]); in bpf_struct_ops_map_update_elem()
|
| H A D | verifier.c | 275 struct btf *btf_vmlinux; in argno_from_reg() 2962 return btf_vmlinux ?: ERR_PTR(-ENOENT); in add_subprogs() 2972 return btf_vmlinux ?: ERR_PTR(-ENOENT); in add_subprogs() 3096 if (!btf_vmlinux) { in sort_subprogs_topo() 6917 if (!btf_vmlinux) { in check_stack_range_initialized() 6928 t = btf_type_by_id(btf_vmlinux, *map->ops->map_btf_id); in check_stack_range_initialized() 6929 tname = btf_name_by_offset(btf_vmlinux, t->name_off); in check_stack_range_initialized() 6952 btf_vmlinux, *map->ops->map_btf_id, 0); in check_stack_range_initialized() 6960 ret = mark_btf_ld_reg(env, regs, value_regno, ret, btf_vmlinux, btf_id, flag); in check_stack_range_initialized() 9963 const struct btf *arg_btf = is_kfunc(meta) ? meta->btf : btf_vmlinux; in check_func_call() 267 struct btf *btf_vmlinux; global() variable [all...] |
| H A D | btf.c | 6547 extern struct btf *btf_vmlinux; in btf_parse_module() 6592 return btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_parse_module() 6670 bpf_log(log, "btf_vmlinux is malformed\n"); in prog_args_trusted() 6675 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in prog_args_trusted() 6700 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_ctx_arg_offset() 6824 bpf_log(log, "btf_vmlinux is malformed\n"); 6830 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); 6841 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); 6872 kctx_type = btf_type_by_id(btf_vmlinux, kctx_type_id); 7641 info->btf = ctx_arg_info->btf ? : btf_vmlinux; in btf_distill_func_proto() [all...] |
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 532 * btf_vmlinux's format. 748 struct btf *btf_vmlinux; 1244 kern_btf = mod_btf ? mod_btf->btf : obj->btf_vmlinux; in bpf_map__init_kern_struct_ops() 3666 /* btf_vmlinux could be loaded earlier */ in bpf_object__sanitize_and_load_btf() 3667 if (obj->btf_vmlinux || obj->gen_loader) in bpf_object__sanitize_and_load_btf() 3673 obj->btf_vmlinux = btf__load_vmlinux_btf(); in bpf_object__sanitize_and_load_btf() 3674 err = libbpf_get_error(obj->btf_vmlinux); in bpf_object__sanitize_and_load_btf() 3677 obj->btf_vmlinux = NULL; in bpf_object__sanitize_and_load_btf() 6005 btf = btf_get_from_fd(fd, obj->btf_vmlinux); in bpf_core_find_cands() 6068 main_btf = obj->btf_vmlinux_override ?: obj->btf_vmlinux; in record_relo_core() 742 struct btf *btf_vmlinux; global() member [all...] |