Home
last modified time | relevance | path

Searched refs:btf_var (Results 1 - 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/tools/include/uapi/linux/
H A Dbtf.h155 /* BTF_KIND_VAR is followed by a single "struct btf_var" to describe
158 struct btf_var { struct
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dbtf.h155 /* BTF_KIND_VAR is followed by a single "struct btf_var" to describe
158 struct btf_var { struct
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dbtf.h162 /* BTF_KIND_VAR is followed by a single "struct btf_var" to describe
165 struct btf_var { struct
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dbtf.h102 struct btf_var { struct
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dbtf.h162 /* BTF_KIND_VAR is followed by a single "struct btf_var" to describe
165 struct btf_var { struct
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dbtf.h102 struct btf_var { struct
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbtf.h346 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function
348 return (struct btf_var *)(t + 1); in btf_var()
H A Dbtf.c279 return base_size + sizeof(struct btf_var); in btf_type_size()
344 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()
1018 const struct btf_var *var; in btf_fixup_datasec()
1042 var = btf_var(t_var); in btf_fixup_datasec()
2200 struct btf_var *v; in btf__add_var()
2216 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()
2229 v = btf_var(t); in btf__add_var()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbtf.h554 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() function
556 return (struct btf_var *)(t + 1); in btf_var()
H A Dlinker.c1409 is_static1 = btf_var(t1)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()
1410 is_static2 = btf_var(t2)->linkage == BTF_VAR_STATIC; in glob_sym_btf_matches()
1654 return (btf_is_var(t) && btf_var(t)->linkage != BTF_VAR_STATIC) in btf_is_non_static()
1698 if (btf_is_var(t) && btf_var(t)->linkage == BTF_VAR_STATIC) in find_glob_sym_btf()
1755 btf_var(dst_t)->linkage = BTF_VAR_GLOBAL_ALLOCATED; in complete_extern_btf_info()
2198 int var_linkage = btf_var(vt)->linkage; in linker_fixup_btf()
H A Dbtf.c318 return base_size + sizeof(struct btf_var); in btf_type_size()
395 btf_var(t)->linkage = bswap_32(btf_var(t)->linkage); in btf_bswap_type_rest()
2481 struct btf_var *v; in btf__add_var()
2497 sz = sizeof(struct btf_type) + sizeof(struct btf_var); in btf__add_var()
2510 v = btf_var(t); in btf__add_var()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_endian.c95 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
H A Dbtf_write.c225 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in test_btf_write()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_endian.c93 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage"); in test_btf_endian()
H A Dbtf_write.c258 ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type"); in gen_btf()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dgen.c155 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_datasec_def()
342 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_subskel_datasecs()
508 if (btf_var(var)->linkage == BTF_VAR_STATIC) in codegen_asserts()
1404 if (btf_var(var_type)->linkage == BTF_VAR_STATIC) in do_subskeleton()
1522 if (btf_var(var_type)->linkage == BTF_VAR_STATIC) in do_subskeleton()
H A Dbtf_dumper.c624 const struct btf_var *var; in __btf_dumper_type_only()
691 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
H A Dbtf.c338 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dbtf_helpers.c187 t->type, btf_var_linkage_str(btf_var(t)->linkage)); in fprintf_btf_type_raw()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dbtf_dumper.c586 const struct btf_var *var; in __btf_dumper_type_only()
651 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
H A Dbtf.c288 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()
/kernel/linux/linux-5.10/include/linux/
H A Dbpf_verifier.h348 } btf_var; member
/kernel/linux/linux-6.6/include/linux/
H A Dbpf_verifier.h491 } btf_var; member
/kernel/linux/linux-5.10/kernel/bpf/
H A Dverifier.c8444 dst_reg->type = aux->btf_var.reg_type; in check_ld_imm()
8447 dst_reg->mem_size = aux->btf_var.mem_size; in check_ld_imm()
8451 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()
10439 aux->btf_var.reg_type = PTR_TO_PERCPU_BTF_ID; in check_pseudo_btf_id()
10440 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
10454 aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; in check_pseudo_btf_id()
10455 aux->btf_var.mem_size = tsize; in check_pseudo_btf_id()
10457 aux->btf_var.reg_type = PTR_TO_BTF_ID; in check_pseudo_btf_id()
10458 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
H A Dbtf.c591 static const struct btf_var *btf_type_var(const struct btf_type *t) in btf_type_var()
593 return (const struct btf_var *)(t + 1); in btf_type_var()
3395 const struct btf_var *var; in btf_var_check_meta()
3441 const struct btf_var *var = btf_type_var(t); in btf_var_log()

Completed in 54 milliseconds

12