raw_btf 2867 tools/lib/bpf/libbpf.c bool raw_btf; raw_btf 2893 tools/lib/bpf/libbpf.c if (locations[i].raw_btf) raw_btf 149 tools/lib/bpf/libbpf_probes.c __u8 *raw_btf; raw_btf 152 tools/lib/bpf/libbpf_probes.c raw_btf = malloc(btf_len); raw_btf 153 tools/lib/bpf/libbpf_probes.c if (!raw_btf) raw_btf 156 tools/lib/bpf/libbpf_probes.c memcpy(raw_btf, &hdr, sizeof(hdr)); raw_btf 157 tools/lib/bpf/libbpf_probes.c memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len); raw_btf 158 tools/lib/bpf/libbpf_probes.c memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); raw_btf 160 tools/lib/bpf/libbpf_probes.c btf_fd = bpf_load_btf(raw_btf, btf_len, NULL, 0, false); raw_btf 162 tools/lib/bpf/libbpf_probes.c free(raw_btf); raw_btf 135 tools/testing/selftests/bpf/map_tests/sk_storage_map.c __u8 raw_btf[sizeof(struct btf_header) + sizeof(btf_raw_types) + raw_btf 138 tools/testing/selftests/bpf/map_tests/sk_storage_map.c memcpy(raw_btf, &btf_hdr, sizeof(btf_hdr)); raw_btf 139 tools/testing/selftests/bpf/map_tests/sk_storage_map.c memcpy(raw_btf + sizeof(btf_hdr), btf_raw_types, sizeof(btf_raw_types)); raw_btf 140 tools/testing/selftests/bpf/map_tests/sk_storage_map.c memcpy(raw_btf + sizeof(btf_hdr) + sizeof(btf_raw_types), raw_btf 143 tools/testing/selftests/bpf/map_tests/sk_storage_map.c return bpf_load_btf(raw_btf, sizeof(raw_btf), 0, 0, 0); raw_btf 3542 tools/testing/selftests/bpf/test_btf.c void *raw_btf = NULL; raw_btf 3549 tools/testing/selftests/bpf/test_btf.c raw_btf = malloc(size_needed); raw_btf 3550 tools/testing/selftests/bpf/test_btf.c if (CHECK(!raw_btf, "Cannot allocate memory for raw_btf")) raw_btf 3554 tools/testing/selftests/bpf/test_btf.c memcpy(raw_btf, hdr, sizeof(*hdr)); raw_btf 3575 tools/testing/selftests/bpf/test_btf.c ret_types = raw_btf + offset; raw_btf 3602 tools/testing/selftests/bpf/test_btf.c memcpy(raw_btf + offset, str, str_sec_size); raw_btf 3604 tools/testing/selftests/bpf/test_btf.c ret_hdr = (struct btf_header *)raw_btf; raw_btf 3616 tools/testing/selftests/bpf/test_btf.c if (raw_btf) raw_btf 3617 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 3622 tools/testing/selftests/bpf/test_btf.c return raw_btf; raw_btf 3632 tools/testing/selftests/bpf/test_btf.c void *raw_btf; raw_btf 3636 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, raw_btf 3642 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 3645 tools/testing/selftests/bpf/test_btf.c hdr = raw_btf; raw_btf 3653 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, raw_btf 3656 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 3783 tools/testing/selftests/bpf/test_btf.c uint8_t *raw_btf = NULL, *user_btf = NULL; raw_btf 3793 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, raw_btf 3799 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 3810 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, raw_btf 3856 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 3869 tools/testing/selftests/bpf/test_btf.c uint8_t *raw_btf = NULL, *user_btf[2] = {}; raw_btf 3877 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, raw_btf 3883 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 3898 tools/testing/selftests/bpf/test_btf.c btf_fd[0] = bpf_load_btf(raw_btf, raw_btf_size, raw_btf 3988 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 4004 tools/testing/selftests/bpf/test_btf.c uint8_t *raw_btf = NULL, *user_btf = NULL; raw_btf 4015 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, raw_btf 4021 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 4032 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, raw_btf 4054 tools/testing/selftests/bpf/test_btf.c (ret = memcmp(raw_btf, user_btf, expected_nbytes)), raw_btf 4078 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 4771 tools/testing/selftests/bpf/test_btf.c uint8_t *raw_btf; raw_btf 4775 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->raw_types, raw_btf 4779 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 4783 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, raw_btf 4786 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 6148 tools/testing/selftests/bpf/test_btf.c void *raw_btf, *patched_linfo = NULL; raw_btf 6153 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->raw_types, raw_btf 6157 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 6161 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, raw_btf 6164 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 6731 tools/testing/selftests/bpf/test_btf.c void *raw_btf; raw_btf 6736 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->input.raw_types, raw_btf 6739 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 6741 tools/testing/selftests/bpf/test_btf.c test_btf = btf__new((__u8 *)raw_btf, raw_btf_size); raw_btf 6742 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 6749 tools/testing/selftests/bpf/test_btf.c raw_btf = btf_raw_create(&hdr_tmpl, test->expect.raw_types, raw_btf 6753 tools/testing/selftests/bpf/test_btf.c if (!raw_btf) raw_btf 6755 tools/testing/selftests/bpf/test_btf.c expect_btf = btf__new((__u8 *)raw_btf, raw_btf_size); raw_btf 6756 tools/testing/selftests/bpf/test_btf.c free(raw_btf); raw_btf 547 tools/testing/selftests/bpf/test_verifier.c void *ptr, *raw_btf; raw_btf 550 tools/testing/selftests/bpf/test_verifier.c ptr = raw_btf = malloc(sizeof(hdr) + sizeof(btf_raw_types) + raw_btf 560 tools/testing/selftests/bpf/test_verifier.c btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); raw_btf 561 tools/testing/selftests/bpf/test_verifier.c free(raw_btf);