Searched refs:btf_vmlinux (Results 1 – 9 of 9) sorted by relevance
| /linux/tools/bpf/bpftool/ |
| A D | cgroup.c | 74 static struct btf *btf_vmlinux; variable 152 if (btf_vmlinux) { in show_bpf_prog() 157 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog() 159 btf__type_by_id(btf_vmlinux, info.attach_btf_id); in show_bpf_prog() 161 btf__name_by_offset(btf_vmlinux, t->name_off); in show_bpf_prog() 372 btf_vmlinux = libbpf_find_kernel_btf(); in do_show() 436 btf_vmlinux = libbpf_find_kernel_btf(); in do_show_tree_fn()
|
| 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()
|
| A D | map.c | 788 static struct btf *btf_vmlinux; variable 795 if (!btf_vmlinux) { in get_map_kv_btf() 796 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf() 797 if (!btf_vmlinux) { in get_map_kv_btf() 802 *btf = btf_vmlinux; in get_map_kv_btf() 818 if (btf != btf_vmlinux) in free_map_kv_btf() 958 btf__free(btf_vmlinux); in do_dump()
|
| /linux/net/core/ |
| A D | bpf_sk_storage.c | 355 const struct btf *btf_vmlinux; in bpf_sk_storage_tracing_allowed() local 374 btf_vmlinux = bpf_get_btf_vmlinux(); in bpf_sk_storage_tracing_allowed() 375 if (IS_ERR_OR_NULL(btf_vmlinux)) in bpf_sk_storage_tracing_allowed() 378 t = btf_type_by_id(btf_vmlinux, btf_id); in bpf_sk_storage_tracing_allowed() 379 tname = btf_name_by_offset(btf_vmlinux, t->name_off); in bpf_sk_storage_tracing_allowed()
|
| /linux/kernel/bpf/ |
| A D | bpf_struct_ops.c | 86 extern struct btf *btf_vmlinux; 104 common_value_type = btf_type_by_id(btf_vmlinux, in is_valid_value_type() 642 module_type = btf_type_by_id(btf_vmlinux, st_ops_ids[IDX_MODULE_ID]); in bpf_struct_ops_map_update_elem()
|
| A D | verifier.c | 344 struct btf *btf_vmlinux; variable 2810 if (!btf_vmlinux) { in add_kfunc_call() 6751 if (!btf_vmlinux) { in check_ptr_to_map_access() 10855 ret_btf = btf_vmlinux; in check_helper_call() 11460 reg_btf = btf_vmlinux; in process_kf_arg_ptr_to_btf_id() 18713 if (!btf_vmlinux) { in check_pseudo_btf_id() 18717 btf = btf_vmlinux; in check_pseudo_btf_id() 22293 if (!btf_vmlinux) in bpf_get_btf_vmlinux() 22297 return btf_vmlinux; in bpf_get_btf_vmlinux() 22356 if (IS_ERR(btf_vmlinux)) { in bpf_check() [all …]
|
| A D | btf.c | 5820 extern struct btf *btf_vmlinux; 5865 return btf_type_by_id(btf_vmlinux, ctx_type->type); in find_canonical_prog_ctx_type() 5939 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_is_prog_ctx_type() 5964 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_is_prog_ctx_type() 6093 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_validate_prog_ctx_type() 6104 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_validate_prog_ctx_type() 6135 kctx_type = btf_type_by_id(btf_vmlinux, kctx_type_id); in get_kern_ctx_btf_id() 6557 info->btf = ctx_arg_info->btf ? : btf_vmlinux; in btf_ctx_access() 6580 info->btf = btf_vmlinux; in btf_ctx_access()
|
| /linux/tools/lib/bpf/ |
| A D | libbpf.c | 703 struct btf *btf_vmlinux; member 3472 if (obj->btf_vmlinux || obj->gen_loader) in bpf_object__load_vmlinux_btf() 3478 obj->btf_vmlinux = btf__load_vmlinux_btf(); in bpf_object__load_vmlinux_btf() 3479 err = libbpf_get_error(obj->btf_vmlinux); in bpf_object__load_vmlinux_btf() 3482 obj->btf_vmlinux = NULL; in bpf_object__load_vmlinux_btf() 5722 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands() 8158 btf = obj->btf_vmlinux; in find_ksym_btf_id() 8538 btf__free(obj->btf_vmlinux); in bpf_object_load() 8539 obj->btf_vmlinux = NULL; in bpf_object_load() 9018 btf__free(obj->btf_vmlinux); in bpf_object__close() [all …]
|
| /linux/kernel/sched/ |
| A D | ext.c | 5310 extern struct btf *btf_vmlinux; 5349 mname = btf_name_by_offset(btf_vmlinux, member->name_off); in set_arg_maybe_null() 5363 info->btf = btf_vmlinux; in set_arg_maybe_null()
|
Completed in 109 milliseconds