Searched refs:btf_vmlinux (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/tools/bpf/bpftool/ |
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() 593 btf__free(btf_vmlinux); in do_struct_ops()
|
A D | cgroup.c | 40 static struct btf *btf_vmlinux; variable 118 if (btf_vmlinux) { in show_bpf_prog() 123 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog() 125 btf__type_by_id(btf_vmlinux, info.attach_btf_id); in show_bpf_prog() 127 btf__name_by_offset(btf_vmlinux, t->name_off); in show_bpf_prog() 338 btf_vmlinux = libbpf_find_kernel_btf(); in do_show() 402 btf_vmlinux = libbpf_find_kernel_btf(); in do_show_tree_fn()
|
A D | map.c | 780 static struct btf *btf_vmlinux; variable 787 if (!btf_vmlinux) { in get_map_kv_btf() 788 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf() 789 if (!btf_vmlinux) { in get_map_kv_btf() 794 *btf = btf_vmlinux; in get_map_kv_btf() 810 if (btf != btf_vmlinux) in free_map_kv_btf() 950 btf__free(btf_vmlinux); in do_dump()
|
/linux-6.3-rc2/kernel/bpf/ |
A D | bpf_struct_ops.c | 203 extern struct btf *btf_vmlinux; 210 if (!value_id || !btf_vmlinux) in bpf_struct_ops_find_value() 225 if (!type_id || !btf_vmlinux) in bpf_struct_ops_find() 305 mtype = btf_type_by_id(btf_vmlinux, member->type); in check_zero_holes() 306 mtype = btf_resolve_size(btf_vmlinux, mtype, &msize); in check_zero_holes() 412 ptype = btf_type_resolve_ptr(btf_vmlinux, member->type, NULL); in bpf_struct_ops_map_update_elem() 437 mtype = btf_type_by_id(btf_vmlinux, member->type); in bpf_struct_ops_map_update_elem() 438 mtype = btf_resolve_size(btf_vmlinux, mtype, &msize); in bpf_struct_ops_map_update_elem() 565 btf_type_seq_show(btf_vmlinux, map->btf_vmlinux_value_type_id, in bpf_struct_ops_map_seq_show_elem()
|
A D | verifier.c | 274 struct btf *btf_vmlinux; variable 2272 if (!btf_vmlinux) { in add_kfunc_call() 5162 if (!btf_vmlinux) { in check_ptr_to_map_access() 8489 ret_btf = btf_vmlinux; in check_helper_call() 9023 reg_btf = btf_vmlinux; in process_kf_arg_ptr_to_btf_id() 14918 if (!btf_vmlinux) { in check_pseudo_btf_id() 14922 btf = btf_vmlinux; in check_pseudo_btf_id() 17634 if (!btf_vmlinux) in bpf_get_btf_vmlinux() 17638 return btf_vmlinux; in bpf_get_btf_vmlinux() 17697 if (IS_ERR(btf_vmlinux)) { in bpf_check() [all …]
|
A D | btf.c | 5601 extern struct btf *btf_vmlinux; 5669 ctx_struct = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_get_prog_ctx_type() 5674 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_struct->name_off); in btf_get_prog_ctx_type() 5694 ctx_struct = btf_type_by_id(btf_vmlinux, ctx_struct->type); in btf_get_prog_ctx_type() 5726 kctx_type = btf_type_by_id(btf_vmlinux, kctx_type_id); in get_kern_ctx_btf_id() 6084 info->btf = btf_vmlinux; in btf_ctx_access() 6104 info->btf = btf_vmlinux; in btf_ctx_access()
|
/linux-6.3-rc2/net/core/ |
A D | bpf_sk_storage.c | 359 const struct btf *btf_vmlinux; in bpf_sk_storage_tracing_allowed() local 378 btf_vmlinux = bpf_get_btf_vmlinux(); in bpf_sk_storage_tracing_allowed() 379 if (IS_ERR_OR_NULL(btf_vmlinux)) in bpf_sk_storage_tracing_allowed() 382 t = btf_type_by_id(btf_vmlinux, btf_id); in bpf_sk_storage_tracing_allowed() 383 tname = btf_name_by_offset(btf_vmlinux, t->name_off); in bpf_sk_storage_tracing_allowed()
|
/linux-6.3-rc2/net/ipv4/ |
A D | bpf_tcp_ca.c | 54 extern struct btf *btf_vmlinux;
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | libbpf.c | 642 struct btf *btf_vmlinux; member 1113 obj->btf_vmlinux); in bpf_object__init_kern_struct_ops_maps() 3020 if (obj->btf_vmlinux || obj->gen_loader) in bpf_object__load_vmlinux_btf() 3026 obj->btf_vmlinux = btf__load_vmlinux_btf(); in bpf_object__load_vmlinux_btf() 3027 err = libbpf_get_error(obj->btf_vmlinux); in bpf_object__load_vmlinux_btf() 3030 obj->btf_vmlinux = NULL; in bpf_object__load_vmlinux_btf() 5453 btf = btf_get_from_fd(fd, obj->btf_vmlinux); in load_module_btfs() 5535 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands() 7402 btf = obj->btf_vmlinux; in find_ksym_btf_id() 7728 btf__free(obj->btf_vmlinux); in bpf_object_load() [all …]
|
Completed in 87 milliseconds