Searched refs:btf_info (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | test_struct_ops_module.c | 16 struct bpf_btf_info btf_info; in check_map_info() local 18 u32 btf_info_len = sizeof(btf_info); in check_map_info() 25 memset(&btf_info, 0, sizeof(btf_info)); in check_map_info() 26 btf_info.name = ptr_to_u64(btf_name); in check_map_info() 27 btf_info.name_len = sizeof(btf_name); in check_map_info() 28 err = bpf_btf_get_info_by_fd(fd, &btf_info, &btf_info_len); in check_map_info()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | cgroup.c | 106 struct bpf_btf_info btf_info = {}; in guess_vmlinux_btf_id() local 107 __u32 btf_len = sizeof(btf_info); in guess_vmlinux_btf_id() 112 btf_info.name = ptr_to_u64(name); in guess_vmlinux_btf_id() 113 btf_info.name_len = sizeof(name); in guess_vmlinux_btf_id() 119 err = bpf_btf_get_info_by_fd(fd, &btf_info, &btf_len); in guess_vmlinux_btf_id() 123 if (btf_info.kernel_btf && strncmp(name, "vmlinux", sizeof(name)) == 0) in guess_vmlinux_btf_id() 124 btf_vmlinux_id = btf_info.id; in guess_vmlinux_btf_id()
|
D | btf.c | 776 struct bpf_btf_info btf_info = {}; in btf_is_kernel_module() local 788 len = sizeof(btf_info); in btf_is_kernel_module() 789 btf_info.name = ptr_to_u64(btf_name); in btf_is_kernel_module() 790 btf_info.name_len = sizeof(btf_name); in btf_is_kernel_module() 791 err = bpf_btf_get_info_by_fd(btf_fd, &btf_info, &len); in btf_is_kernel_module() 798 return btf_info.kernel_btf && strncmp(btf_name, "vmlinux", sizeof(btf_name)) != 0; in btf_is_kernel_module()
|
/linux-6.12.1/tools/lib/bpf/ |
D | btf.c | 1568 struct bpf_btf_info btf_info; in btf_get_from_fd() local 1569 __u32 len = sizeof(btf_info); in btf_get_from_fd() 1584 memset(&btf_info, 0, sizeof(btf_info)); in btf_get_from_fd() 1585 btf_info.btf = ptr_to_u64(ptr); in btf_get_from_fd() 1586 btf_info.btf_size = last_size; in btf_get_from_fd() 1587 err = bpf_btf_get_info_by_fd(btf_fd, &btf_info, &len); 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() 1600 len = sizeof(btf_info); in btf_get_from_fd() 1601 memset(&btf_info, 0, sizeof(btf_info)); in btf_get_from_fd() [all …]
|