Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c17 enum btf_endianness swap_endian = 1 - endian; in test_btf_endian() local
31 btf__set_endianness(btf, swap_endian); in test_btf_endian()
32 ASSERT_EQ(btf__endianness(btf), swap_endian, "endian"); in test_btf_endian()
44 ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian"); in test_btf_endian()
77 btf__set_endianness(btf, swap_endian); in test_btf_endian()
87 ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian"); in test_btf_endian()
/tools/lib/bpf/
Dbtf.c1158 static void *btf_get_raw_data(const struct btf *btf, __u32 *size, bool swap_endian);
1255 static void *btf_get_raw_data(const struct btf *btf, __u32 *size, bool swap_endian) in btf_get_raw_data() argument
1263 data = swap_endian ? btf->raw_data_swapped : btf->raw_data; in btf_get_raw_data()
1276 if (swap_endian) in btf_get_raw_data()
1281 if (swap_endian) { in btf_get_raw_data()