Searched refs:attr_sz (Results 1 – 3 of 3) sorted by relevance
/third_party/libbpf/src/ |
D | bpf.c | 108 const size_t attr_sz = offsetofend(union bpf_attr, attach_btf_obj_fd); in probe_memcg_account() local 118 memset(&attr, 0, attr_sz); in probe_memcg_account() 124 prog_fd = sys_bpf_fd(BPF_PROG_LOAD, &attr, attr_sz); in probe_memcg_account() 172 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in bpf_map_create() local 178 memset(&attr, 0, attr_sz); in bpf_map_create() 201 fd = sys_bpf_fd(BPF_MAP_CREATE, &attr, attr_sz); in bpf_map_create() 235 const size_t attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_prog_load() local 255 memset(&attr, 0, attr_sz); in bpf_prog_load() 318 fd = sys_bpf_prog_load(&attr, attr_sz, attempts); in bpf_prog_load() 358 fd = sys_bpf_prog_load(&attr, attr_sz, attempts); in bpf_prog_load() [all …]
|
D | skel_internal.h | 225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in skel_map_create() local 228 memset(&attr, 0, attr_sz); in skel_map_create() 236 return skel_sys_bpf(BPF_MAP_CREATE, &attr, attr_sz); in skel_map_create() 242 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem() local 245 memset(&attr, 0, attr_sz); in skel_map_update_elem() 251 return skel_sys_bpf(BPF_MAP_UPDATE_ELEM, &attr, attr_sz); in skel_map_update_elem() 256 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem() local 259 memset(&attr, 0, attr_sz); in skel_map_delete_elem() 263 return skel_sys_bpf(BPF_MAP_DELETE_ELEM, &attr, attr_sz); in skel_map_delete_elem() 268 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id() local [all …]
|
D | libbpf.c | 4851 const size_t attr_sz = offsetofend(union bpf_attr, prog_name); local 4859 memset(&attr, 0, attr_sz); 4867 ret = sys_bpf_prog_load(&attr, attr_sz, PROG_LOAD_ATTEMPTS); 10255 const size_t attr_sz = sizeof(struct perf_event_attr); local 10263 memset(&attr, 0, attr_sz); 10285 attr.size = attr_sz; 10384 const size_t attr_sz = sizeof(struct perf_event_attr); local 10405 memset(&attr, 0, attr_sz); 10406 attr.size = attr_sz; 10863 const size_t attr_sz = sizeof(struct perf_event_attr); local [all …]
|