Searched refs:raw_btf (Results 1 – 6 of 6) sorted by relevance
/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 | 4475 bool raw_btf; in btf__load_vmlinux_btf() member 4501 if (locations[i].raw_btf) in btf__load_vmlinux_btf()
|
/tools/testing/selftests/bpf/progs/ |
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()
|
/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()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 3725 void *raw_btf = NULL; in btf_raw_create() local 3732 raw_btf = malloc(size_needed); in btf_raw_create() 3733 if (CHECK(!raw_btf, "Cannot allocate memory for raw_btf")) in btf_raw_create() 3737 memcpy(raw_btf, hdr, sizeof(*hdr)); in btf_raw_create() 3758 ret_types = raw_btf + offset; in btf_raw_create() 3785 memcpy(raw_btf + offset, str, str_sec_size); in btf_raw_create() 3787 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create() 3799 if (raw_btf) in btf_raw_create() 3800 free(raw_btf); in btf_raw_create() 3805 return raw_btf; in btf_raw_create() [all …]
|
/tools/testing/selftests/bpf/ |
D | test_verifier.c | 634 void *ptr, *raw_btf; in load_btf() local 637 ptr = raw_btf = malloc(sizeof(hdr) + sizeof(btf_raw_types) + in load_btf() 647 btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); in load_btf() 648 free(raw_btf); in load_btf()
|