Searched refs:raw_btf (Results 1 – 3 of 3) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_btf.c | 3542 void *raw_btf = NULL; in btf_raw_create() local 3549 raw_btf = malloc(size_needed); in btf_raw_create() 3550 if (CHECK(!raw_btf, "Cannot allocate memory for raw_btf")) in btf_raw_create() 3554 memcpy(raw_btf, hdr, sizeof(*hdr)); in btf_raw_create() 3575 ret_types = raw_btf + offset; in btf_raw_create() 3602 memcpy(raw_btf + offset, str, str_sec_size); in btf_raw_create() 3604 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create() 3616 if (raw_btf) in btf_raw_create() 3617 free(raw_btf); in btf_raw_create() 3622 return raw_btf; in btf_raw_create() [all …]
|
D | test_verifier.c | 548 void *ptr, *raw_btf; in load_btf() local 551 ptr = raw_btf = malloc(sizeof(hdr) + sizeof(btf_raw_types) + in load_btf() 561 btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); in load_btf() 562 free(raw_btf); in load_btf()
|
/external/linux-kselftest/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()
|