/third_party/libbpf/src/ |
D | btf.h | 23 struct btf; 38 LIBBPF_API void btf__free(struct btf *btf); 54 LIBBPF_API struct btf *btf__new(const void *data, __u32 size); 76 LIBBPF_API struct btf *btf__new_split(const void *data, __u32 size, struct btf *base_btf); 90 LIBBPF_API struct btf *btf__new_empty(void); 108 LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf); 110 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext); 111 LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf); 112 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext); 113 LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf); [all …]
|
D | btf.c | 35 struct btf { struct 101 struct btf *base_btf; argument 196 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) in btf_add_type_offs_mem() argument 198 return libbpf_add_mem((void **)&btf->type_offs, &btf->type_offs_cap, sizeof(__u32), in btf_add_type_offs_mem() 199 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem() 202 static int btf_add_type_idx_entry(struct btf *btf, __u32 type_off) in btf_add_type_idx_entry() argument 206 p = btf_add_type_offs_mem(btf, 1); in btf_add_type_idx_entry() 224 static int btf_parse_hdr(struct btf *btf) in btf_parse_hdr() argument 226 struct btf_header *hdr = btf->hdr; in btf_parse_hdr() 229 if (btf->raw_size < sizeof(struct btf_header)) { in btf_parse_hdr() [all …]
|
D | relo_core.h | 10 const struct btf *btf; member 30 const struct btf *btf; member 71 int __bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, 72 const struct btf *targ_btf, __u32 targ_id, int level); 73 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, 74 const struct btf *targ_btf, __u32 targ_id); 75 int __bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, 77 int bpf_core_types_match(const struct btf *local_btf, __u32 local_id, const struct btf *targ_btf, 84 const struct btf *local_btf, 93 int bpf_core_parse_spec(const char *prog_name, const struct btf *btf,
|
D | relo_core.c | 22 skip_mods_and_typedefs(const struct btf *btf, u32 id, u32 *res_id) in skip_mods_and_typedefs() argument 24 return btf_type_skip_modifiers(btf, id, res_id); in skip_mods_and_typedefs() 27 static const char *btf__name_by_offset(const struct btf *btf, u32 offset) in btf__name_by_offset() argument 29 return btf_name_by_offset(btf, offset); in btf__name_by_offset() 32 static s64 btf__resolve_size(const struct btf *btf, u32 type_id) in btf__resolve_size() argument 37 t = btf_type_by_id(btf, type_id); in btf__resolve_size() 38 t = btf_resolve_size(btf, t, &size); in btf__resolve_size() 71 static bool is_flex_arr(const struct btf *btf, in is_flex_arr() argument 82 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr() 146 int __bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, in __bpf_core_types_are_compat() [all …]
|
D | linker.c | 58 struct btf *btf; member 147 struct btf *btf; member 197 btf__free(linker->btf); in bpf_linker__free() 420 linker->btf = btf__new_empty(); in init_output_elf() 421 err = libbpf_get_error(linker->btf); in init_output_elf() 461 btf__free(obj.btf); in bpf_linker__add_file() 656 obj->btf = btf__new(data->d_buf, shdr->sh_size); in linker_load_obj_file() 657 err = libbpf_get_error(obj->btf); in linker_load_obj_file() 917 struct btf *btf = ctx; in check_btf_type_id() local 919 if (*type_id >= btf__type_cnt(btf)) in check_btf_type_id() [all …]
|
D | btf_dump.c | 80 const struct btf *btf; member 133 return btf__name_by_offset(d->btf, name_off); in btf_name_of() 148 struct btf_dump *btf_dump__new(const struct btf *btf, in btf_dump__new() argument 166 d->btf = btf; in btf_dump__new() 169 d->ptr_sz = btf__pointer_size(btf) ? : sizeof(void *); in btf_dump__new() 196 int err, last_id = btf__type_cnt(d->btf) - 1; in btf_dump_resize() 281 if (id >= btf__type_cnt(d->btf)) in btf_dump__dump_type() 313 int i, j, n = btf__type_cnt(d->btf); in btf_dump_mark_referenced() 318 t = btf__type_by_id(d->btf, i); in btf_dump_mark_referenced() 491 t = btf__type_by_id(d->btf, id); in btf_dump_order_type() [all …]
|
D | libbpf.c | 601 struct btf *btf; member 684 struct btf *btf; member 690 struct btf *btf_vmlinux; 696 struct btf *btf_vmlinux_override; 952 find_member_by_name(const struct btf *btf, const struct btf_type *t, in find_member_by_name() argument 959 if (!strcmp(btf__name_by_offset(btf, m->name_off), name)) in find_member_by_name() 967 static int find_btf_by_prefix_kind(const struct btf *btf, const char *prefix, 971 find_struct_ops_kern_types(const struct btf *btf, const char *tname, in find_struct_ops_kern_types() argument 981 kern_type_id = btf__find_by_name_kind(btf, tname, BTF_KIND_STRUCT); in find_struct_ops_kern_types() 987 kern_type = btf__type_by_id(btf, kern_type_id); in find_struct_ops_kern_types() [all …]
|
D | libbpf_internal.h | 261 struct btf; 264 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id); 266 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id); 308 int parse_btf_map_def(const char *map_name, struct btf *btf, 416 int btf_load_into_kernel(struct btf *btf, char *log_buf, size_t log_sz, __u32 log_level); 418 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf); 554 __s32 btf__find_by_name_kind_own(const struct btf *btf, const char *type_name, 633 const struct btf *targ_btf,
|
D | libbpf_legacy.h | 125 struct btf; 128 LIBBPF_API struct btf *libbpf_find_kernel_btf(void); 133 LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size);
|
D | Makefile | 55 OBJS := bpf.o btf.o libbpf.o libbpf_errno.o netlink.o \ 70 HEADERS := bpf.h libbpf.h btf.h libbpf_common.h libbpf_legacy.h \ 75 bpf.h bpf_common.h btf.h)
|
D | libbpf.h | 275 struct btf; 276 LIBBPF_API struct btf *bpf_object__btf(const struct bpf_object *obj);
|
/third_party/libbpf/ |
D | README_zh.md | 94 但是它依赖于使用[BTF](https://www.kernel.org/doc/html/latest/bpf/btf.html)构建的内核 114 * 您可以通过查找`/sys/kernel/btf/vmlinux`文件来检查内核是否内置了BTF: 117 $ ls -la /sys/kernel/btf/vmlinux 118 -r--r--r--. 1 root root 3541561 Jun 2 18:16 /sys/kernel/btf/vmlinux
|
D | BUILD.gn | 68 "./src/btf.c", 69 "./src/btf.h",
|
D | README.md | 97 information](https://www.kernel.org/doc/html/latest/bpf/btf.html), though. 113 `/sys/kernel/btf/vmlinux` file: 116 $ ls -la /sys/kernel/btf/vmlinux 117 -r--r--r--. 1 root root 3541561 Jun 2 18:16 /sys/kernel/btf/vmlinux
|
D | SYNC.md | 242 $ bpftool btf dump file ~/linux/vmlinux format c > ~/libbpf/.github/actions/build-selftests/vmlinux…
|
/third_party/libbpf/docs/ |
D | api.rst | 65 btf.h 67 .. doxygenfile:: btf.h
|
D | libbpf_overview.rst | 147 information through ``sysfs`` at ``/sys/kernel/btf/vmlinux``. 154 $ bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h 157 (:doc:`BTF types <../btf>`) that the running kernel uses. Including
|
D | libbpf_naming_convention.rst | 53 to ``libbpf.h``. BTF types and functions should go to ``btf.h``. 153 Here is an example from btf.h:
|
/third_party/libbpf/ci/vmtest/configs/ |
D | DENYLIST-5.5.0 | 3 btf # "size check test", "func (Non zero vlen)"
|
/third_party/libbpf/scripts/ |
D | sync-kernel.sh | 44 [tools/include/uapi/linux/btf.h]=include/uapi/linux/btf.h \
|
/third_party/ltp/include/lapi/ |
D | bpf.h | 304 aligned_uint64_t btf; member
|
/third_party/libbpf/include/uapi/linux/ |
D | bpf.h | 1575 __aligned_u64 btf; member 6493 __aligned_u64 btf; member
|
/third_party/FatFs/source/ |
D | ff.h | 460 FRESULT f_forward (FIL* fp, UINT(*func)(const BYTE*,UINT), UINT btf, UINT* bf); /* Forward data to …
|
D | ff.c | 5480 UINT btf, /* Number of bytes to forward */ argument 5499 if (btf > remain) btf = (UINT)remain; /* Truncate btf by remaining bytes */ 5501 …for ( ; btf > 0 && (*func)(0, 0); fp->fptr += rcnt, *bf += rcnt, btf -= rcnt) { /* Repeat until al… 5532 if (rcnt > btf) rcnt = btf; /* Clip it by btr if needed */
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_execute.c | 3557 struct vk_cmd_begin_transform_feedback_ext *btf = &cmd->u.begin_transform_feedback_ext; in handle_begin_transform_feedback() local 3562 for (unsigned i = 0; btf->counter_buffers && i < btf->counter_buffer_count; i++) { in handle_begin_transform_feedback() 3563 if (!btf->counter_buffers[i]) in handle_begin_transform_feedback() 3567 … btf->counter_buffers ? lvp_buffer_from_handle(btf->counter_buffers[i])->bo : NULL, in handle_begin_transform_feedback() 3568 btf->counter_buffer_offsets ? btf->counter_buffer_offsets[i] : 0, in handle_begin_transform_feedback()
|