Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dksyms.c17 __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()
Dbtf.c4209 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/
Dsyscall.c53 .btf_size = sizeof(raw_btf), in btf_load()
/linux-6.6.21/tools/lib/bpf/
Dbpf.h137 LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
Dbpf.c1167 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()
Dbtf.c1362 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()
Dgen_loader.c428 attr.btf_size = btf_raw_size; in bpf_gen__load_btf()
/linux-6.6.21/tools/bpf/bpftool/
Dbtf.c874 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/
Dbpf.h1559 __u32 btf_size; member
6467 __u32 btf_size; member
/linux-6.6.21/include/uapi/linux/
Dbpf.h1559 __u32 btf_size; member
6467 __u32 btf_size; member
/linux-6.6.21/kernel/bpf/
Dbtf.c5484 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()