Searched refs:raw_btf (Results 1 – 6 of 6) sorted by relevance
/linux/tools/lib/bpf/ |
A D | libbpf_probes.c | 158 __u8 *raw_btf; in libbpf__load_raw_btf() local 161 raw_btf = malloc(btf_len); in libbpf__load_raw_btf() 162 if (!raw_btf) in libbpf__load_raw_btf() 165 memcpy(raw_btf, &hdr, sizeof(hdr)); in libbpf__load_raw_btf() 166 memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len); in libbpf__load_raw_btf() 167 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf() 169 btf_fd = bpf_load_btf(raw_btf, btf_len, NULL, 0, false); in libbpf__load_raw_btf() 171 free(raw_btf); in libbpf__load_raw_btf()
|
A D | btf.c | 4527 bool raw_btf; in btf__load_vmlinux_btf() member 4553 if (locations[i].raw_btf) in btf__load_vmlinux_btf()
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | syscall.c | 36 } raw_btf = { in btf_load() local 53 .btf_size = sizeof(raw_btf), in btf_load() 56 btf_load_attr.btf = (long)&raw_btf; in btf_load()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | btf.c | 4050 if (raw_btf) in btf_raw_create() 4066 void *raw_btf; in do_test_raw() local 4077 if (!raw_btf) in do_test_raw() 4080 hdr = raw_btf; in do_test_raw() 4209 if (!raw_btf) in test_big_btf_info() 4293 if (!raw_btf) in test_btf_id() 4434 if (!raw_btf) in do_test_get_info() 5163 if (!raw_btf) in do_test_pprint() 6537 if (!raw_btf) in do_test_info_raw() 7317 if (!raw_btf) in do_test_dedup() [all …]
|
/linux/tools/testing/selftests/bpf/map_tests/ |
A D | sk_storage_map.c | 135 __u8 raw_btf[sizeof(struct btf_header) + sizeof(btf_raw_types) + in load_btf() local 138 memcpy(raw_btf, &btf_hdr, sizeof(btf_hdr)); in load_btf() 139 memcpy(raw_btf + sizeof(btf_hdr), btf_raw_types, sizeof(btf_raw_types)); in load_btf() 140 memcpy(raw_btf + sizeof(btf_hdr) + sizeof(btf_raw_types), in load_btf() 143 return bpf_load_btf(raw_btf, sizeof(raw_btf), 0, 0, 0); in load_btf()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_verifier.c | 644 void *ptr, *raw_btf; in load_btf() local 647 ptr = raw_btf = malloc(sizeof(hdr) + sizeof(btf_raw_types) + in load_btf() 657 btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); in load_btf() 658 free(raw_btf); in load_btf()
|
Completed in 30 milliseconds