btf_fd 384 include/uapi/linux/bpf.h __u32 btf_fd; /* fd pointing to a BTF type data */ btf_fd 591 kernel/bpf/syscall.c btf = btf_get_by_fd(attr->btf_fd); btf_fd 384 tools/include/uapi/linux/bpf.h __u32 btf_fd; /* fd pointing to a BTF type data */ btf_fd 94 tools/lib/bpf/bpf.c attr.btf_fd = create_attr->btf_fd; btf_fd 47 tools/lib/bpf/bpf.h __u32 btf_fd; btf_fd 637 tools/lib/bpf/btf.c int btf_fd; btf_fd 643 tools/lib/bpf/btf.c btf_fd = bpf_btf_get_fd_by_id(id); btf_fd 644 tools/lib/bpf/btf.c if (btf_fd < 0) btf_fd 661 tools/lib/bpf/btf.c err = bpf_obj_get_info_by_fd(btf_fd, &btf_info, &len); btf_fd 675 tools/lib/bpf/btf.c err = bpf_obj_get_info_by_fd(btf_fd, &btf_info, &len); btf_fd 690 tools/lib/bpf/btf.c close(btf_fd); btf_fd 2050 tools/lib/bpf/libbpf.c int btf_fd; btf_fd 2052 tools/lib/bpf/libbpf.c btf_fd = libbpf__load_raw_btf((char *)types, sizeof(types), btf_fd 2054 tools/lib/bpf/libbpf.c if (btf_fd >= 0) { btf_fd 2056 tools/lib/bpf/libbpf.c close(btf_fd); btf_fd 2077 tools/lib/bpf/libbpf.c int btf_fd; btf_fd 2079 tools/lib/bpf/libbpf.c btf_fd = libbpf__load_raw_btf((char *)types, sizeof(types), btf_fd 2081 tools/lib/bpf/libbpf.c if (btf_fd >= 0) { btf_fd 2083 tools/lib/bpf/libbpf.c close(btf_fd); btf_fd 2181 tools/lib/bpf/libbpf.c create_attr.btf_fd = 0; btf_fd 2189 tools/lib/bpf/libbpf.c create_attr.btf_fd = btf__fd(obj->btf); btf_fd 2201 tools/lib/bpf/libbpf.c create_attr.btf_fd = 0; btf_fd 3371 tools/lib/bpf/libbpf.c int btf_fd, ret; btf_fd 3388 tools/lib/bpf/libbpf.c btf_fd = bpf_object__btf_fd(prog->obj); btf_fd 3390 tools/lib/bpf/libbpf.c btf_fd = -1; btf_fd 3391 tools/lib/bpf/libbpf.c load_attr.prog_btf_fd = btf_fd >= 0 ? btf_fd : 0; btf_fd 148 tools/lib/bpf/libbpf_probes.c int btf_fd, btf_len; btf_fd 160 tools/lib/bpf/libbpf_probes.c btf_fd = bpf_load_btf(raw_btf, btf_len, NULL, 0, false); btf_fd 163 tools/lib/bpf/libbpf_probes.c return btf_fd; btf_fd 198 tools/lib/bpf/libbpf_probes.c int fd = -1, btf_fd = -1, fd_inner; btf_fd 230 tools/lib/bpf/libbpf_probes.c btf_fd = load_sk_storage_btf(); btf_fd 231 tools/lib/bpf/libbpf_probes.c if (btf_fd < 0) btf_fd 280 tools/lib/bpf/libbpf_probes.c if (btf_fd >= 0) { btf_fd 281 tools/lib/bpf/libbpf_probes.c attr.btf_fd = btf_fd; btf_fd 290 tools/lib/bpf/libbpf_probes.c if (btf_fd >= 0) btf_fd 291 tools/lib/bpf/libbpf_probes.c close(btf_fd); btf_fd 31 tools/testing/selftests/bpf/map_tests/sk_storage_map.c .btf_fd = -1, btf_fd 148 tools/testing/selftests/bpf/map_tests/sk_storage_map.c int btf_fd, map_fd; btf_fd 150 tools/testing/selftests/bpf/map_tests/sk_storage_map.c btf_fd = load_btf(); btf_fd 151 tools/testing/selftests/bpf/map_tests/sk_storage_map.c CHECK(btf_fd == -1, "bpf_load_btf", "btf_fd:%d errno:%d\n", btf_fd 152 tools/testing/selftests/bpf/map_tests/sk_storage_map.c btf_fd, errno); btf_fd 153 tools/testing/selftests/bpf/map_tests/sk_storage_map.c xattr.btf_fd = btf_fd; btf_fd 156 tools/testing/selftests/bpf/map_tests/sk_storage_map.c xattr.btf_fd = -1; btf_fd 157 tools/testing/selftests/bpf/map_tests/sk_storage_map.c close(btf_fd); btf_fd 467 tools/testing/selftests/bpf/map_tests/sk_storage_map.c int btf_fd, map_fd, sk_fd, err; btf_fd 469 tools/testing/selftests/bpf/map_tests/sk_storage_map.c btf_fd = load_btf(); btf_fd 470 tools/testing/selftests/bpf/map_tests/sk_storage_map.c CHECK(btf_fd == -1, "bpf_load_btf", "btf_fd:%d errno:%d\n", btf_fd 471 tools/testing/selftests/bpf/map_tests/sk_storage_map.c btf_fd, errno); btf_fd 472 tools/testing/selftests/bpf/map_tests/sk_storage_map.c xattr.btf_fd = btf_fd; btf_fd 587 tools/testing/selftests/bpf/map_tests/sk_storage_map.c xattr.btf_fd = -1; btf_fd 588 tools/testing/selftests/bpf/map_tests/sk_storage_map.c close(btf_fd); btf_fd 3629 tools/testing/selftests/bpf/test_btf.c int map_fd = -1, btf_fd = -1; btf_fd 3653 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, btf_fd 3658 tools/testing/selftests/bpf/test_btf.c err = ((btf_fd == -1) != test->btf_load_err); btf_fd 3660 tools/testing/selftests/bpf/test_btf.c btf_fd, test->btf_load_err) || btf_fd 3667 tools/testing/selftests/bpf/test_btf.c if (err || btf_fd == -1) btf_fd 3675 tools/testing/selftests/bpf/test_btf.c create_attr.btf_fd = btf_fd; btf_fd 3692 tools/testing/selftests/bpf/test_btf.c if (btf_fd != -1) btf_fd 3693 tools/testing/selftests/bpf/test_btf.c close(btf_fd); btf_fd 3790 tools/testing/selftests/bpf/test_btf.c int btf_fd = -1, err; btf_fd 3810 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, btf_fd 3813 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd == -1, "errno:%d", errno)) { btf_fd 3829 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(btf_fd, info, &info_len); btf_fd 3842 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(btf_fd, info, &info_len); btf_fd 3859 tools/testing/selftests/bpf/test_btf.c if (btf_fd != -1) btf_fd 3860 tools/testing/selftests/bpf/test_btf.c close(btf_fd); btf_fd 3870 tools/testing/selftests/bpf/test_btf.c int btf_fd[2] = {-1, -1}, map_fd = -1; btf_fd 3898 tools/testing/selftests/bpf/test_btf.c btf_fd[0] = bpf_load_btf(raw_btf, raw_btf_size, btf_fd 3901 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd[0] == -1, "errno:%d", errno)) { btf_fd 3908 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(btf_fd[0], &info[0], &info_len); btf_fd 3914 tools/testing/selftests/bpf/test_btf.c btf_fd[1] = bpf_btf_get_fd_by_id(info[0].id); btf_fd 3915 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd[1] == -1, "errno:%d", errno)) { btf_fd 3921 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(btf_fd[1], &info[1], &info_len); btf_fd 3938 tools/testing/selftests/bpf/test_btf.c create_attr.btf_fd = btf_fd[0]; btf_fd 3960 tools/testing/selftests/bpf/test_btf.c close(btf_fd[i]); btf_fd 3961 tools/testing/selftests/bpf/test_btf.c btf_fd[i] = -1; btf_fd 3965 tools/testing/selftests/bpf/test_btf.c btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); btf_fd 3966 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd[0] == -1, "errno:%d", errno)) { btf_fd 3970 tools/testing/selftests/bpf/test_btf.c close(btf_fd[0]); btf_fd 3971 tools/testing/selftests/bpf/test_btf.c btf_fd[0] = -1; btf_fd 3976 tools/testing/selftests/bpf/test_btf.c btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); btf_fd 3977 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd[0] != -1, "BTF lingers")) { btf_fd 3993 tools/testing/selftests/bpf/test_btf.c if (btf_fd[i] != -1) btf_fd 3994 tools/testing/selftests/bpf/test_btf.c close(btf_fd[i]); btf_fd 4006 tools/testing/selftests/bpf/test_btf.c int btf_fd = -1, err, ret; btf_fd 4032 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, btf_fd 4035 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd == -1, "errno:%d", errno)) { btf_fd 4051 tools/testing/selftests/bpf/test_btf.c err = bpf_obj_get_info_by_fd(btf_fd, &info, &info_len); btf_fd 4081 tools/testing/selftests/bpf/test_btf.c if (btf_fd != -1) btf_fd 4082 tools/testing/selftests/bpf/test_btf.c close(btf_fd); btf_fd 4763 tools/testing/selftests/bpf/test_btf.c int map_fd = -1, btf_fd = -1; btf_fd 4783 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, btf_fd 4788 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd == -1, "errno:%d", errno)) { btf_fd 4798 tools/testing/selftests/bpf/test_btf.c create_attr.btf_fd = btf_fd; btf_fd 4938 tools/testing/selftests/bpf/test_btf.c if (btf_fd != -1) btf_fd 4939 tools/testing/selftests/bpf/test_btf.c close(btf_fd); btf_fd 6147 tools/testing/selftests/bpf/test_btf.c int btf_fd = -1, prog_fd = -1, err = 0; btf_fd 6161 tools/testing/selftests/bpf/test_btf.c btf_fd = bpf_load_btf(raw_btf, raw_btf_size, btf_fd 6166 tools/testing/selftests/bpf/test_btf.c if (CHECK(btf_fd == -1, "invalid btf_fd errno:%d", errno)) { btf_fd 6189 tools/testing/selftests/bpf/test_btf.c attr.prog_btf_fd = btf_fd; btf_fd 6232 tools/testing/selftests/bpf/test_btf.c if (btf_fd != -1) btf_fd 6233 tools/testing/selftests/bpf/test_btf.c close(btf_fd); btf_fd 548 tools/testing/selftests/bpf/test_verifier.c int btf_fd; btf_fd 560 tools/testing/selftests/bpf/test_verifier.c btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); btf_fd 562 tools/testing/selftests/bpf/test_verifier.c if (btf_fd < 0) btf_fd 564 tools/testing/selftests/bpf/test_verifier.c return btf_fd; btf_fd 578 tools/testing/selftests/bpf/test_verifier.c int fd, btf_fd; btf_fd 580 tools/testing/selftests/bpf/test_verifier.c btf_fd = load_btf(); btf_fd 581 tools/testing/selftests/bpf/test_verifier.c if (btf_fd < 0) btf_fd 583 tools/testing/selftests/bpf/test_verifier.c attr.btf_fd = btf_fd; btf_fd 602 tools/testing/selftests/bpf/test_verifier.c int fd, btf_fd; btf_fd 604 tools/testing/selftests/bpf/test_verifier.c btf_fd = load_btf(); btf_fd 605 tools/testing/selftests/bpf/test_verifier.c if (btf_fd < 0) btf_fd 607 tools/testing/selftests/bpf/test_verifier.c attr.btf_fd = btf_fd; btf_fd 609 tools/testing/selftests/bpf/test_verifier.c close(attr.btf_fd);