Home
last modified time | relevance | path

Searched refs:test_btf (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcore_reloc_raw.c75 struct test_btf { in test_early_core_relo() struct
86 .str_off = offsetof(struct test_btf, strings) - in test_early_core_relo()
87 offsetof(struct test_btf, types), in test_early_core_relo()
213 struct test_btf { in test_bad_local_id() struct
224 .str_off = offsetof(struct test_btf, strings) - in test_bad_local_id()
225 offsetof(struct test_btf, types), in test_bad_local_id()
H A Dlinked_list.c331 static void test_btf(void) in test_btf() function
802 test_btf(); in test_linked_list()
H A Dbtf.c8228 struct btf *test_btf = NULL, *expect_btf = NULL; in do_test_dedup() local
8247 test_btf = btf__new((__u8 *)raw_btf, raw_btf_size); in do_test_dedup()
8248 err = libbpf_get_error(test_btf); in do_test_dedup()
8270 err = btf__dedup(test_btf, &test->opts); in do_test_dedup()
8276 test_btf_data = btf__raw_data(test_btf, &test_btf_size); in do_test_dedup()
8306 off = btf__find_str(test_btf, expect_str_cur); in do_test_dedup()
8311 test_str_cur = btf__str_by_offset(test_btf, off); in do_test_dedup()
8331 test_nr_types = btf__type_cnt(test_btf); in do_test_dedup()
8344 test_type = btf__type_by_id(test_btf, i); in do_test_dedup()
8376 btf__free(test_btf); in do_test_dedup()
[all …]