Searched refs:btf__add_var (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_field_iter.c | 77 btf__add_var(btf, "var1", BTF_VAR_STATIC, 1); /* [15] static int var1; */ in test_btf_field_iter() 78 btf__add_var(btf, "var2", BTF_VAR_STATIC, 3); /* [16] static int *var2; */ in test_btf_field_iter()
|
H A D | btf_endian.c | 71 var_id = btf__add_var(btf, "some_var", BTF_VAR_GLOBAL_ALLOCATED, 1); in test_btf_endian()
|
H A D | btf_write.c | 252 id = btf__add_var(btf, "var1", BTF_VAR_GLOBAL_ALLOCATED, 1); in gen_btf()
|
/linux/tools/lib/bpf/ |
H A D | libbpf.map | 228 btf__add_var;
|
H A D | btf.h | 235 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
|
H A D | btf.c | 2719 int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) in btf__add_var() function
|
H A D | libbpf.c | 4161 dummy_var_btf_id = btf__add_var(btf, in add_dummy_ksym_var()
|