Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dksyms.c15 __u64 btf_size; in test_ksyms() local
32 btf_size = st.st_size; in test_ksyms()
48 ASSERT_EQ(data->out__btf_size, btf_size, "btf_size"); in test_ksyms()
Dbtf.c4269 unsigned int *btf_size, in btf_raw_create() argument
4346 *btf_size = size_needed; in btf_raw_create()
4554 info->btf_size = raw_btf_size; in test_big_btf_info()
4622 info[i].btf_size = raw_btf_size; in test_btf_id()
4648 info[0].btf_size != info[1].btf_size || in test_btf_id()
4649 (ret = memcmp(user_btf[0], user_btf[1], info[0].btf_size)), in test_btf_id()
4652 info[0].btf_size, info[1].btf_size, ret)) { in test_btf_id()
4764 info.btf_size = user_btf_size; in do_test_get_info()
4769 info.btf_size != raw_btf_size || in do_test_get_info()
4773 raw_btf_size, info.btf_size, expected_nbytes, ret)) { in do_test_get_info()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dsyscall.c91 .btf_size = sizeof(raw_btf), in btf_load()
/linux-6.12.1/tools/lib/bpf/
Dbpf.h145 LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
Dbpf.c1203 int bpf_btf_load(const void *btf_data, size_t btf_size, struct bpf_btf_load_opts *opts) in bpf_btf_load() argument
1229 attr.btf_size = btf_size; in bpf_btf_load()
Dbtf.c1586 btf_info.btf_size = last_size; in btf_get_from_fd()
1589 if (!err && btf_info.btf_size > last_size) { in btf_get_from_fd()
1592 last_size = btf_info.btf_size; in btf_get_from_fd()
1603 btf_info.btf_size = last_size; in btf_get_from_fd()
1608 if (err || btf_info.btf_size > last_size) { in btf_get_from_fd()
1613 btf = btf_new(ptr, btf_info.btf_size, base_btf); in btf_get_from_fd()
Dgen_loader.c428 attr.btf_size = btf_raw_size; in bpf_gen__load_btf()
/linux-6.12.1/tools/bpf/bpftool/
Dbtf.c1128 printf("size %uB", info->btf_size); in show_btf_plain()
1155 jsonw_uint_field(json_wtr, "size", info->btf_size); in show_btf_json()
/linux-6.12.1/include/uapi/linux/
Dbpf.h1681 __u32 btf_size; member
6615 __u32 btf_size; member
/linux-6.12.1/tools/include/uapi/linux/
Dbpf.h1681 __u32 btf_size; member
6615 __u32 btf_size; member
/linux-6.12.1/kernel/bpf/
Dbtf.c5725 if (attr->btf_size > BTF_MAX_SIZE) in btf_parse()
5747 data = kvmalloc(attr->btf_size, GFP_KERNEL | __GFP_NOWARN); in btf_parse()
5754 btf->data_size = attr->btf_size; in btf_parse()
5756 if (copy_from_bpfptr(data, btf_data, attr->btf_size)) { in btf_parse()
7756 btf_copy = min_t(u32, btf->data_size, info.btf_size); in btf_get_info_by_fd()
7759 info.btf_size = btf->data_size; in btf_get_info_by_fd()