Home
last modified time | relevance | path

Searched refs:btf_vmlinux (Results 1 – 8 of 8) sorted by relevance

/linux/tools/bpf/bpftool/
A Dstruct_ops.c21 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()
A Dmap.c805 static struct btf *btf_vmlinux; variable
812 if (!btf_vmlinux) { in get_map_kv_btf()
813 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf()
814 if (IS_ERR(btf_vmlinux)) in get_map_kv_btf()
817 return btf_vmlinux; in get_map_kv_btf()
834 if (!IS_ERR(btf) && btf != btf_vmlinux) in free_map_kv_btf()
840 if (!IS_ERR(btf_vmlinux)) in free_btf_vmlinux()
841 btf__free(btf_vmlinux); in free_btf_vmlinux()
/linux/kernel/bpf/
A Dbpf_struct_ops.c202 extern struct btf *btf_vmlinux;
209 if (!value_id || !btf_vmlinux) in bpf_struct_ops_find_value()
224 if (!type_id || !btf_vmlinux) in bpf_struct_ops_find()
304 mtype = btf_type_by_id(btf_vmlinux, member->type); in check_zero_holes()
305 mtype = btf_resolve_size(btf_vmlinux, mtype, &msize); in check_zero_holes()
391 ptype = btf_type_resolve_ptr(btf_vmlinux, member->type, NULL); in bpf_struct_ops_map_update_elem()
416 mtype = btf_type_by_id(btf_vmlinux, member->type); in bpf_struct_ops_map_update_elem()
417 mtype = btf_resolve_size(btf_vmlinux, mtype, &msize); in bpf_struct_ops_map_update_elem()
536 btf_type_seq_show(btf_vmlinux, map->btf_vmlinux_value_type_id, in bpf_struct_ops_map_seq_show_elem()
A Dverifier.c261 struct btf *btf_vmlinux; variable
1807 if (!btf_vmlinux) { in add_kfunc_call()
4172 if (!btf_vmlinux) { in check_ptr_to_map_access()
5175 btf_vmlinux, *arg_btf_id)) { in check_reg_type()
11438 i = btf_nr_types(btf_vmlinux); in find_btf_percpu_datasec()
11480 if (!btf_vmlinux) { in check_pseudo_btf_id()
11484 btf = btf_vmlinux; in check_pseudo_btf_id()
13909 if (!btf_vmlinux) in bpf_get_btf_vmlinux()
13913 return btf_vmlinux; in bpf_get_btf_vmlinux()
13970 if (IS_ERR(btf_vmlinux)) { in bpf_check()
[all …]
A Dbtf.c4523 extern struct btf *btf_vmlinux;
4591 ctx_struct = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_get_prog_ctx_type()
4595 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_struct->name_off); in btf_get_prog_ctx_type()
4962 info->btf = btf_vmlinux; in btf_ctx_access()
4979 info->btf = btf_vmlinux; in btf_ctx_access()
5641 reg_btf = btf_vmlinux; in btf_check_func_arg_match()
/linux/net/ipv4/
A Dbpf_tcp_ca.c77 extern struct btf *btf_vmlinux;
265 if (!btf_type_resolve_func_ptr(btf_vmlinux, member->type, NULL)) in bpf_tcp_ca_init_member()
/linux/net/core/
A Dbpf_sk_storage.c384 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/tools/lib/bpf/
A Dlibbpf.c536 struct btf *btf_vmlinux; member
1046 obj->btf_vmlinux); in bpf_object__init_kern_struct_ops_maps()
2880 if (obj->btf_vmlinux || obj->gen_loader) in bpf_object__load_vmlinux_btf()
2886 obj->btf_vmlinux = btf__load_vmlinux_btf(); in bpf_object__load_vmlinux_btf()
2887 err = libbpf_get_error(obj->btf_vmlinux); in bpf_object__load_vmlinux_btf()
2890 obj->btf_vmlinux = NULL; in bpf_object__load_vmlinux_btf()
5202 btf = btf_get_from_fd(fd, obj->btf_vmlinux); in load_module_btfs()
5281 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands()
6990 btf = obj->btf_vmlinux; in find_ksym_btf_id()
7295 btf__free(obj->btf_vmlinux); in bpf_object__load_xattr()
[all …]

Completed in 67 milliseconds