Searched refs:btf_size (Results 1 – 11 of 11) sorted by relevance
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | ksyms.c | 17 __u64 btf_size; in test_ksyms() local 34 btf_size = st.st_size; in test_ksyms() 53 CHECK(data->out__btf_size != btf_size, "btf_size", in test_ksyms() 54 "got %llu, exp %llu\n", data->out__btf_size, btf_size); in test_ksyms()
|
D | btf.c | 4209 unsigned int *btf_size, in btf_raw_create() argument 4286 *btf_size = size_needed; in btf_raw_create() 4491 info->btf_size = raw_btf_size; in test_big_btf_info() 4559 info[i].btf_size = raw_btf_size; in test_btf_id() 4585 info[0].btf_size != info[1].btf_size || in test_btf_id() 4586 (ret = memcmp(user_btf[0], user_btf[1], info[0].btf_size)), in test_btf_id() 4589 info[0].btf_size, info[1].btf_size, ret)) { in test_btf_id() 4701 info.btf_size = user_btf_size; in do_test_get_info() 4706 info.btf_size != raw_btf_size || in do_test_get_info() 4710 raw_btf_size, info.btf_size, expected_nbytes, ret)) { in do_test_get_info()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | syscall.c | 53 .btf_size = sizeof(raw_btf), in btf_load()
|
/linux-6.6.21/tools/lib/bpf/ |
D | bpf.h | 137 LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
|
D | bpf.c | 1167 int bpf_btf_load(const void *btf_data, size_t btf_size, struct bpf_btf_load_opts *opts) in bpf_btf_load() argument 1193 attr.btf_size = btf_size; in bpf_btf_load()
|
D | btf.c | 1362 btf_info.btf_size = last_size; in btf_get_from_fd() 1365 if (!err && btf_info.btf_size > last_size) { in btf_get_from_fd() 1368 last_size = btf_info.btf_size; in btf_get_from_fd() 1379 btf_info.btf_size = last_size; in btf_get_from_fd() 1384 if (err || btf_info.btf_size > last_size) { in btf_get_from_fd() 1389 btf = btf_new(ptr, btf_info.btf_size, base_btf); in btf_get_from_fd()
|
D | gen_loader.c | 428 attr.btf_size = btf_raw_size; in bpf_gen__load_btf()
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | btf.c | 874 printf("size %uB", info->btf_size); in show_btf_plain() 901 jsonw_uint_field(json_wtr, "size", info->btf_size); in show_btf_json()
|
/linux-6.6.21/tools/include/uapi/linux/ |
D | bpf.h | 1559 __u32 btf_size; member 6467 __u32 btf_size; member
|
/linux-6.6.21/include/uapi/linux/ |
D | bpf.h | 1559 __u32 btf_size; member 6467 __u32 btf_size; member
|
/linux-6.6.21/kernel/bpf/ |
D | btf.c | 5484 if (attr->btf_size > BTF_MAX_SIZE) in btf_parse() 5506 data = kvmalloc(attr->btf_size, GFP_KERNEL | __GFP_NOWARN); in btf_parse() 5513 btf->data_size = attr->btf_size; in btf_parse() 5515 if (copy_from_bpfptr(data, btf_data, attr->btf_size)) { in btf_parse() 7249 btf_copy = min_t(u32, btf->data_size, info.btf_size); in btf_get_info_by_fd() 7252 info.btf_size = btf->data_size; in btf_get_info_by_fd()
|