Searched refs:btf_fd (Results 1 - 9 of 9) sorted by relevance
/third_party/libbpf/src/ |
H A D | libbpf_probes.c | 232 int btf_fd, btf_len; in libbpf__load_raw_btf() local 244 btf_fd = bpf_btf_load(raw_btf, btf_len, NULL); in libbpf__load_raw_btf() 247 return btf_fd; in libbpf__load_raw_btf() 282 int fd = -1, btf_fd = -1, fd_inner = -1, exp_err = 0, err = 0; in probe_map_create() local 316 btf_fd = load_local_storage_btf(); in probe_map_create() 317 if (btf_fd < 0) in probe_map_create() 318 return btf_fd; in probe_map_create() 369 if (btf_fd >= 0) { in probe_map_create() 370 opts.btf_fd = btf_fd; in probe_map_create() [all...] |
H A D | gen_loader.c | 35 __u32 btf_fd; member 175 /* Get index for map_fd/btf_fd slot in reserved fd_array, or in data relative 380 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish() 444 /* remember btf_fd in the stack, if successful */ in bpf_gen__load_btf() 445 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf() 478 /* populate union bpf_attr with btf_fd saved in the stack earlier */ in bpf_gen__map_create() 479 move_stack2blob(gen, attr_field(map_create_attr, btf_fd), 4, in bpf_gen__map_create() 480 stack_off(btf_fd)); in bpf_gen__map_create() 731 debug_regs(gen, BPF_REG_9, -1, " func (%s:count=%d): btf_fd", in emit_relo_kfunc_btf() 1002 /* populate union bpf_attr with btf_fd save in bpf_gen__prog_load() [all...] |
H A D | bpf.h | 43 __u32 btf_fd; member 526 * BTF object corresponding to *btf_fd*. 531 * @param btf_fd BTF object file descriptor 539 LIBBPF_API int bpf_btf_get_info_by_fd(int btf_fd, struct bpf_btf_info *info, __u32 *info_len);
|
H A D | bpf.c | 190 attr.btf_fd = OPTS_GET(opts, btf_fd, 0); in bpf_map_create() 1159 int bpf_btf_get_info_by_fd(int btf_fd, struct bpf_btf_info *info, __u32 *info_len) in bpf_btf_get_info_by_fd() argument 1161 return bpf_obj_get_info_by_fd(btf_fd, info, info_len); in bpf_btf_get_info_by_fd()
|
H A D | libbpf_internal.h | 418 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf);
|
H A D | btf.c | 1604 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf) argument 1625 err = bpf_btf_get_info_by_fd(btf_fd, &btf_info, &len); 1643 err = bpf_btf_get_info_by_fd(btf_fd, &btf_info, &len); 1661 int btf_fd; local 1663 btf_fd = bpf_btf_get_fd_by_id(id); 1664 if (btf_fd < 0) 1667 btf = btf_get_from_fd(btf_fd, base_btf); 1668 close(btf_fd);
|
H A D | libbpf.c | 5523 create_attr.btf_fd = btf__fd(obj->btf); 5556 create_attr.btf_fd = 0; 5587 create_attr.btf_fd = 0; 7337 int btf_fd, ret, err; local 7363 btf_fd = bpf_object__btf_fd(obj); 7364 if (btf_fd >= 0 && kernel_supports(obj, FEAT_BTF_FUNC)) { 7365 load_attr.prog_btf_fd = btf_fd;
|
/third_party/ltp/include/lapi/ |
H A D | bpf.h | 197 uint32_t btf_fd; /* fd pointing to a BTF type data */ member
|
/third_party/libbpf/include/uapi/linux/ |
H A D | bpf.h | 1390 __u32 btf_fd; /* fd pointing to a BTF type data */ member
|
Completed in 41 milliseconds