Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c20 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() local
42 swap_btf = btf__new(raw_data, raw_sz); in test_btf_endian()
43 if (!ASSERT_OK_PTR(swap_btf, "parse_swap_btf")) in test_btf_endian()
46 ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian"); in test_btf_endian()
47 ASSERT_EQ(btf__get_nr_types(swap_btf), btf__get_nr_types(btf), "nr_types"); in test_btf_endian()
49 swap_raw_data = btf__get_raw_data(swap_btf, &swap_raw_sz); in test_btf_endian()
62 btf__set_endianness(swap_btf, endian); in test_btf_endian()
63 swap_raw_data = btf__get_raw_data(swap_btf, &swap_raw_sz); in test_btf_endian()
76 btf__free(swap_btf); in test_btf_endian()
77 swap_btf = NULL; in test_btf_endian()
[all …]