Home
last modified time | relevance | path

Searched refs:btf__add_var (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_field_iter.c77 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 Dbtf_endian.c71 var_id = btf__add_var(btf, "some_var", BTF_VAR_GLOBAL_ALLOCATED, 1); in test_btf_endian()
H A Dbtf_write.c252 id = btf__add_var(btf, "var1", BTF_VAR_GLOBAL_ALLOCATED, 1); in gen_btf()
/linux/tools/lib/bpf/
H A Dlibbpf.map228 btf__add_var;
H A Dbtf.h235 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
H A Dbtf.c2719 int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) in btf__add_var() function
H A Dlibbpf.c4161 dummy_var_btf_id = btf__add_var(btf, in add_dummy_ksym_var()