Lines Matching refs:attr_size

266 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size)  in emit_sys_bpf()  argument
271 emit(gen, BPF_MOV64_IMM(BPF_REG_3, attr_size)); in emit_sys_bpf()
419 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf() local
423 memset(&attr, 0, attr_size); in bpf_gen__load_btf()
428 btf_load_attr = add_data(gen, &attr, attr_size); in bpf_gen__load_btf()
440 emit_sys_bpf(gen, BPF_BTF_LOAD, btf_load_attr, attr_size); in bpf_gen__load_btf()
450 int attr_size = offsetofend(union bpf_attr, btf_vmlinux_value_type_id); in bpf_gen__map_create() local
455 memset(&attr, 0, attr_size); in bpf_gen__map_create()
490 map_create_attr = add_data(gen, &attr, attr_size); in bpf_gen__map_create()
513 emit_sys_bpf(gen, BPF_MAP_CREATE, map_create_attr, attr_size); in bpf_gen__map_create()
918 int attr_size = offsetofend(union bpf_attr, fd_array); in bpf_gen__prog_load() local
922 memset(&attr, 0, attr_size); in bpf_gen__prog_load()
951 prog_load_attr = add_data(gen, &attr, attr_size); in bpf_gen__prog_load()
991 emit_sys_bpf(gen, BPF_PROG_LOAD, prog_load_attr, attr_size); in bpf_gen__prog_load()
1008 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() local
1013 memset(&attr, 0, attr_size); in bpf_gen__map_update_elem()
1032 map_update_attr = add_data(gen, &attr, attr_size); in bpf_gen__map_update_elem()
1038 emit_sys_bpf(gen, BPF_MAP_UPDATE_ELEM, map_update_attr, attr_size); in bpf_gen__map_update_elem()
1045 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze() local
1049 memset(&attr, 0, attr_size); in bpf_gen__map_freeze()
1051 map_freeze_attr = add_data(gen, &attr, attr_size); in bpf_gen__map_freeze()
1055 emit_sys_bpf(gen, BPF_MAP_FREEZE, map_freeze_attr, attr_size); in bpf_gen__map_freeze()