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

/linux-master/tools/bpf/bpftool/
H A Dstruct_ops.c21 static struct btf *btf_vmlinux; variable in typeref:struct:btf
31 if (btf_vmlinux)
32 return btf_vmlinux;
34 btf_vmlinux = libbpf_find_kernel_btf();
35 if (!btf_vmlinux)
38 return btf_vmlinux;
72 p_err("can't find bpf_map_info from btf_vmlinux");
645 btf__free(btf_vmlinux);
H A Dcgroup.c42 static struct btf *btf_vmlinux; variable in typeref:struct:btf
120 if (btf_vmlinux) {
125 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) {
127 btf__type_by_id(btf_vmlinux, info.attach_btf_id);
129 btf__name_by_offset(btf_vmlinux, t->name_off);
340 btf_vmlinux = libbpf_find_kernel_btf();
404 btf_vmlinux = libbpf_find_kernel_btf();
H A Dmap.c788 static struct btf *btf_vmlinux; variable in typeref:struct:btf
795 if (!btf_vmlinux) {
796 btf_vmlinux = libbpf_find_kernel_btf();
797 if (!btf_vmlinux) {
802 *btf = btf_vmlinux;
818 if (btf != btf_vmlinux)
958 btf__free(btf_vmlinux);
/linux-master/net/core/
H A Dbpf_sk_storage.c355 const struct btf *btf_vmlinux; local
374 btf_vmlinux = bpf_get_btf_vmlinux();
375 if (IS_ERR_OR_NULL(btf_vmlinux))
378 t = btf_type_by_id(btf_vmlinux, btf_id);
379 tname = btf_name_by_offset(btf_vmlinux, t->name_off);
/linux-master/kernel/bpf/
H A Dbpf_struct_ops.c84 extern struct btf *btf_vmlinux;
102 common_value_type = btf_type_by_id(btf_vmlinux,
640 module_type = btf_type_by_id(btf_vmlinux, st_ops_ids[IDX_MODULE_ID]);
H A Dverifier.c342 struct btf *btf_vmlinux; variable in typeref:struct:btf
2718 return btf_vmlinux ?: ERR_PTR(-ENOENT);
2738 if (!btf_vmlinux) {
6594 if (!btf_vmlinux) {
6605 t = btf_type_by_id(btf_vmlinux, *map->ops->map_btf_id);
6606 tname = btf_name_by_offset(btf_vmlinux, t->name_off);
6628 mark_btf_ld_reg(env, &map_reg, 0, PTR_TO_BTF_ID, btf_vmlinux, *map->ops->map_btf_id, 0);
6634 mark_btf_ld_reg(env, regs, value_regno, ret, btf_vmlinux, btf_id, flag);
8333 btf_vmlinux, *arg_btf_id,
8337 btf_type_name(btf_vmlinux, *arg_btf_i
[all...]
H A Dbtf.c5647 extern struct btf *btf_vmlinux;
5692 return btf_type_by_id(btf_vmlinux, ctx_type->type);
5752 bpf_log(log, "btf_vmlinux is malformed\n");
5757 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off);
5784 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type);
5907 bpf_log(log, "btf_vmlinux is malformed\n");
5913 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type);
5924 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off);
5955 kctx_type = btf_type_by_id(btf_vmlinux, kctx_type_id);
6327 info->btf = ctx_arg_info->btf ? : btf_vmlinux;
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c481 * btf_vmlinux's format.
679 struct btf *btf_vmlinux; member in struct:bpf_object
985 * btf_vmlinux.
1107 kern_btf = mod_btf ? mod_btf->btf : obj->btf_vmlinux;
3400 /* btf_vmlinux could be loaded earlier */
3401 if (obj->btf_vmlinux || obj->gen_loader)
3407 obj->btf_vmlinux = btf__load_vmlinux_btf();
3408 err = libbpf_get_error(obj->btf_vmlinux);
3411 obj->btf_vmlinux = NULL;
5555 btf = btf_get_from_fd(fd, obj->btf_vmlinux);
[all...]

Completed in 313 milliseconds