Searched refs:raw_btf (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/tools/lib/bpf/ |
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()
|
D | btf.c | 4430 bool raw_btf; in libbpf_find_kernel_btf() member 4456 if (locations[i].raw_btf) in libbpf_find_kernel_btf()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 3546 void *raw_btf = NULL; in btf_raw_create() local 3553 raw_btf = malloc(size_needed); in btf_raw_create() 3554 if (CHECK(!raw_btf, "Cannot allocate memory for raw_btf")) in btf_raw_create() 3558 memcpy(raw_btf, hdr, sizeof(*hdr)); in btf_raw_create() 3579 ret_types = raw_btf + offset; in btf_raw_create() 3606 memcpy(raw_btf + offset, str, str_sec_size); in btf_raw_create() 3608 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create() 3620 if (raw_btf) in btf_raw_create() 3621 free(raw_btf); in btf_raw_create() 3626 return raw_btf; in btf_raw_create() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/ |
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_verifier.c | 551 void *ptr, *raw_btf; in load_btf() local 554 ptr = raw_btf = malloc(sizeof(hdr) + sizeof(btf_raw_types) + in load_btf() 564 btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); in load_btf() 565 free(raw_btf); in load_btf()
|