Home
last modified time | relevance | path

Searched refs:offsetofend (Results 1 – 6 of 6) sorted by relevance

/third_party/libbpf/src/
Dbpf.c108 const size_t attr_sz = offsetofend(union bpf_attr, attach_btf_obj_fd); in probe_memcg_account()
172 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in bpf_map_create()
235 const size_t attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_prog_load()
384 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_update_elem()
400 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem()
415 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem_flags()
431 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem()
446 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem_flags()
462 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem()
476 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem_flags()
[all …]
Dskel_internal.h214 #ifndef offsetofend
215 #define offsetofend(TYPE, MEMBER) \ macro
225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in skel_map_create()
242 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem()
256 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem()
268 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id()
279 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd); in skel_raw_tracepoint_open()
292 const size_t attr_sz = offsetofend(union bpf_attr, link_create.iter_info_len); in skel_link_create()
311 const size_t prog_load_attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_load_and_run()
312 const size_t test_run_attr_sz = offsetofend(union bpf_attr, test); in bpf_load_and_run()
Dlibbpf_internal.h90 #ifndef offsetofend
91 # define offsetofend(TYPE, FIELD) \ macro
298 offsetofend(struct type, \
302 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field))
313 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
Dgen_loader.c420 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf()
454 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create()
742 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_ksym_relo_log()
838 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf()
840 emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf()
938 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load()
1035 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem()
1082 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__populate_outer_map()
1108 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze()
Dbtf.c2902 if (data_size < offsetofend(struct btf_ext_header, hdr_len) ||
2966 if (btf_ext->hdr->hdr_len < offsetofend(struct btf_ext_header, line_info_len)) {
2979 if (btf_ext->hdr->hdr_len < offsetofend(struct btf_ext_header, core_relo_len))
Dlibbpf.c4851 const size_t attr_sz = offsetofend(union bpf_attr, prog_name);