Searched refs:raw_btf (Results 1 – 5 of 5) sorted by relevance
/tools/lib/bpf/ |
D | libbpf_probes.c | 149 __u8 *raw_btf; in libbpf__load_raw_btf() local 152 raw_btf = malloc(btf_len); in libbpf__load_raw_btf() 153 if (!raw_btf) in libbpf__load_raw_btf() 156 memcpy(raw_btf, &hdr, sizeof(hdr)); in libbpf__load_raw_btf() 157 memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len); in libbpf__load_raw_btf() 158 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf() 160 btf_fd = bpf_load_btf(raw_btf, btf_len, NULL, 0, false); in libbpf__load_raw_btf() 162 free(raw_btf); in libbpf__load_raw_btf()
|
D | libbpf.c | 2872 bool raw_btf; in bpf_core_find_kernel_btf() member 2898 if (locations[i].raw_btf) in bpf_core_find_kernel_btf()
|
/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/ |
D | test_btf.c | 3570 void *raw_btf = NULL; in btf_raw_create() local 3577 raw_btf = malloc(size_needed); in btf_raw_create() 3578 if (CHECK(!raw_btf, "Cannot allocate memory for raw_btf")) in btf_raw_create() 3582 memcpy(raw_btf, hdr, sizeof(*hdr)); in btf_raw_create() 3603 ret_types = raw_btf + offset; in btf_raw_create() 3630 memcpy(raw_btf + offset, str, str_sec_size); in btf_raw_create() 3632 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create() 3644 if (raw_btf) in btf_raw_create() 3645 free(raw_btf); in btf_raw_create() 3650 return raw_btf; in btf_raw_create() [all …]
|
D | test_verifier.c | 547 void *ptr, *raw_btf; in load_btf() local 550 ptr = raw_btf = malloc(sizeof(hdr) + sizeof(btf_raw_types) + in load_btf() 560 btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); in load_btf() 561 free(raw_btf); in load_btf()
|