Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c22 __u32 raw_sz, swap_raw_sz; in test_btf_endian() local
35 raw_data = btf__get_raw_data(btf, &raw_sz); in test_btf_endian()
40 swap_btf = btf__new(raw_data, raw_sz); in test_btf_endian()
52 ASSERT_OK(memcmp(raw_data, swap_raw_data, raw_sz), "mem_identical"); in test_btf_endian()
57 ASSERT_EQ(raw_sz, swap_raw_sz, "raw_sizes"); in test_btf_endian()
68 ASSERT_EQ(raw_sz, swap_raw_sz, "raw_sizes"); in test_btf_endian()
78 raw_data = btf__get_raw_data(btf, &raw_sz); in test_btf_endian()
83 swap_btf = btf__new(raw_data, raw_sz); in test_btf_endian()
Dcore_autosize.c63 __u32 raw_sz; in test_core_autosize() local
115 raw_data = btf__get_raw_data(btf, &raw_sz); in test_core_autosize()
118 written = fwrite(raw_data, 1, raw_sz, f); in test_core_autosize()
119 if (CHECK(written != raw_sz, "btf_write", "written: %zu, errno: %d\n", written, errno)) in test_core_autosize()
/tools/lib/bpf/
Dlinker.c2617 size_t align, const void *raw_data, size_t raw_sz) in emit_elf_data_sec() argument
2641 shdr->sh_size = raw_sz; in emit_elf_data_sec()
2648 data->d_size = raw_sz; in emit_elf_data_sec()
2661 __u32 raw_sz; in finalize_btf() local
2701 raw_data = btf__get_raw_data(linker->btf, &raw_sz); in finalize_btf()
2705 err = emit_elf_data_sec(linker, BTF_ELF_SEC, 8, raw_data, raw_sz); in finalize_btf()
2713 raw_data = btf_ext__get_raw_data(linker->btf_ext, &raw_sz); in finalize_btf()
2717 err = emit_elf_data_sec(linker, BTF_EXT_ELF_SEC, 8, raw_data, raw_sz); in finalize_btf()