Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_field_iter.c63 btf__add_enum_value(btf, "v1", 1); /* v1 = 1; */ in test_btf_field_iter()
64 btf__add_enum_value(btf, "v2", 2); /* v2 = 2; */ in test_btf_field_iter()
H A Dbtf_distill.c40 btf__add_enum_value(btf1, "v1", 1); /* v1 = 1; */ in test_distilled_base()
43 btf__add_enum_value(btf1, "av1", 2); /* av1 = 2; */ in test_distilled_base()
H A Dbtf_write.c158 err = btf__add_enum_value(btf, "v1", 1); in gen_btf()
160 err = btf__add_enum_value(btf, "v2", 2); in gen_btf()
H A Dbtf_dump.c166 err = btf__add_enum_value(btf, "X", 1); in test_btf_dump_incremental()
171 err = btf__add_enum_value(btf, "Y", 1); in test_btf_dump_incremental()
/linux/tools/lib/bpf/
H A Dlibbpf.map213 btf__add_enum_value;
H A Dbtf.h214 LIBBPF_API int btf__add_enum_value(struct btf *btf, const char *name, __s64 value);
H A Dbtf.c2368 int btf__add_enum_value(struct btf *btf, const char *name, __s64 value) in btf__add_enum_value() function