/Linux-v5.10/tools/lib/bpf/ |
D | libbpf_probes.c | 155 int btf_fd, btf_len; in libbpf__load_raw_btf() local 167 btf_fd = bpf_load_btf(raw_btf, btf_len, NULL, 0, false); in libbpf__load_raw_btf() 170 return btf_fd; in libbpf__load_raw_btf() 205 int fd = -1, btf_fd = -1, fd_inner; in bpf_probe_map_type() local 238 btf_fd = load_local_storage_btf(); in bpf_probe_map_type() 239 if (btf_fd < 0) in bpf_probe_map_type() 294 if (btf_fd >= 0) { in bpf_probe_map_type() 295 attr.btf_fd = btf_fd; in bpf_probe_map_type() 304 if (btf_fd >= 0) in bpf_probe_map_type() 305 close(btf_fd); in bpf_probe_map_type()
|
D | bpf.h | 45 __u32 btf_fd; member
|
D | bpf.c | 94 attr.btf_fd = create_attr->btf_fd; in bpf_create_map_xattr()
|
D | btf.c | 1234 int btf_fd; in btf__get_from_id() local 1240 btf_fd = bpf_btf_get_fd_by_id(id); in btf__get_from_id() 1241 if (btf_fd < 0) in btf__get_from_id() 1258 err = bpf_obj_get_info_by_fd(btf_fd, &btf_info, &len); in btf__get_from_id() 1272 err = bpf_obj_get_info_by_fd(btf_fd, &btf_info, &len); in btf__get_from_id() 1287 close(btf_fd); in btf__get_from_id()
|
D | libbpf.c | 4156 create_attr.btf_fd = 0; in bpf_object__create_map() 4160 create_attr.btf_fd = btf__fd(obj->btf); in bpf_object__create_map() 4190 create_attr.btf_fd = 0; in bpf_object__create_map() 6633 int btf_fd, ret; in load_program() local 6663 btf_fd = bpf_object__btf_fd(prog->obj); in load_program() 6664 if (btf_fd >= 0 && kernel_supports(FEAT_BTF_FUNC)) { in load_program() 6665 load_attr.prog_btf_fd = btf_fd; in load_program()
|
/Linux-v5.10/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 31 .btf_fd = -1, 148 int btf_fd, map_fd; in create_sk_storage_map() local 150 btf_fd = load_btf(); in create_sk_storage_map() 151 CHECK(btf_fd == -1, "bpf_load_btf", "btf_fd:%d errno:%d\n", in create_sk_storage_map() 152 btf_fd, errno); in create_sk_storage_map() 153 xattr.btf_fd = btf_fd; in create_sk_storage_map() 156 xattr.btf_fd = -1; in create_sk_storage_map() 157 close(btf_fd); in create_sk_storage_map() 467 int btf_fd, map_fd, sk_fd, err; in test_sk_storage_map_basic() local 469 btf_fd = load_btf(); in test_sk_storage_map_basic() [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_verifier.c | 551 int btf_fd; in load_btf() local 563 btf_fd = bpf_load_btf(raw_btf, ptr - raw_btf, 0, 0, 0); in load_btf() 565 if (btf_fd < 0) in load_btf() 567 return btf_fd; in load_btf() 581 int fd, btf_fd; in create_map_spin_lock() local 583 btf_fd = load_btf(); in create_map_spin_lock() 584 if (btf_fd < 0) in create_map_spin_lock() 586 attr.btf_fd = btf_fd; in create_map_spin_lock() 605 int fd, btf_fd; in create_sk_storage_map() local 607 btf_fd = load_btf(); in create_sk_storage_map() [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 3633 int map_fd = -1, btf_fd = -1; in do_test_raw() local 3658 btf_fd = bpf_load_btf(raw_btf, raw_btf_size, in do_test_raw() 3663 err = ((btf_fd == -1) != test->btf_load_err); in do_test_raw() 3665 btf_fd, test->btf_load_err) || in do_test_raw() 3672 if (err || btf_fd == -1) in do_test_raw() 3680 create_attr.btf_fd = btf_fd; in do_test_raw() 3693 if (btf_fd != -1) in do_test_raw() 3694 close(btf_fd); in do_test_raw() 3770 int btf_fd = -1, err; in test_big_btf_info() local 3790 btf_fd = bpf_load_btf(raw_btf, raw_btf_size, in test_big_btf_info() [all …]
|
/Linux-v5.10/Documentation/bpf/ |
D | btf.rst | 489 BPF_BTF_GET_FD_BY_ID (get btf_fd) | 502 :ref:`BTF_Type_String`, can be directly loaded into the kernel. A ``btf_fd`` 508 A map can be created with ``btf_fd`` and specified key/value type id.:: 510 __u32 btf_fd; /* fd pointing to a BTF type data */
|
/Linux-v5.10/include/uapi/linux/ |
D | bpf.h | 498 __u32 btf_fd; /* fd pointing to a BTF type data */ member
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | bpf.h | 498 __u32 btf_fd; /* fd pointing to a BTF type data */ member
|
/Linux-v5.10/kernel/bpf/ |
D | syscall.c | 849 btf = btf_get_by_fd(attr->btf_fd); in map_create()
|