Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 25 of 26) sorted by relevance

12

/kernel/bpf/
Dreuseport_array.c155 array = bpf_map_area_alloc(struct_size(array, ptrs, attr->max_entries), numa_node); in reuseport_array_alloc()
339 return struct_size(array, ptrs, map->max_entries); in reuseport_array_mem_usage()
Dbtf.c2082 u32 struct_size = struct_type->size; in btf_int_check_member() local
2103 if (struct_size < bytes_offset || in btf_int_check_member()
2104 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_member()
2120 u32 struct_size = struct_type->size; in btf_int_check_kflag_member() local
2159 if (struct_size < bytes_offset || in btf_int_check_kflag_member()
2160 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_kflag_member()
2489 u32 struct_size, struct_bits_off, bytes_offset; in btf_ptr_check_member() local
2491 struct_size = struct_type->size; in btf_ptr_check_member()
2501 if (struct_size - bytes_offset < sizeof(void *)) { in btf_ptr_check_member()
2814 u32 struct_size, bytes_offset; in btf_array_check_member() local
[all …]
Dlocal_storage.c167 new = bpf_map_kmalloc_node(map, struct_size(new, data, map->value_size), in cgroup_storage_update_elem()
Dcore.c882 pack = kzalloc(struct_size(pack, bitmap, BITS_TO_LONGS(BPF_PROG_CHUNK_COUNT)), in alloc_new_pack()
/kernel/irq/
Dgeneric-chip.c247 gc = kzalloc(struct_size(gc, chip_types, num_ct), GFP_KERNEL); in irq_alloc_generic_chip()
308 gc_sz = struct_size(gc, chip_types, num_ct); in __irq_alloc_domain_generic_chips()
309 dgc_sz = struct_size(dgc, gc, numchips); in __irq_alloc_domain_generic_chips()
Ddevres.c224 gc = devm_kzalloc(dev, struct_size(gc, chip_types, num_ct), GFP_KERNEL); in devm_irq_alloc_generic_chip()
Dirqdomain.c146 domain = kzalloc_node(struct_size(domain, revmap, size), in __irq_domain_create()
/kernel/module/
Dsysfs.c83 size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded), in add_sect_attrs()
192 notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes), in add_notes_attrs()
/kernel/
Dgroups.c18 gi = kvmalloc(struct_size(gi, gid, gidsetsize), GFP_KERNEL_ACCOUNT); in groups_alloc()
Daudit_tree.c97 tree = kmalloc(struct_size(tree, pathname, strlen(s) + 1), GFP_KERNEL); in alloc_tree()
193 chunk = kzalloc(struct_size(chunk, owners, count), GFP_KERNEL); in alloc_chunk()
Dauditfilter.c641 data = kmalloc(struct_size(data, buf, krule->buflen), GFP_KERNEL); in audit_krule_to_data()
1097 struct_size(data, buf, data->buflen)); in audit_list_rules()
Dtracepoint.c109 struct tp_probes *p = kmalloc(struct_size(p, probes, count), in allocate_probes()
Dwatch_queue.c353 wfilter = kzalloc(struct_size(wfilter, filters, nr_filter), GFP_KERNEL); in watch_queue_set_filter()
Daudit.c1481 sig_data = kmalloc(struct_size(sig_data, ctx, len), GFP_KERNEL); in audit_receive_msg()
1494 sig_data, struct_size(sig_data, ctx, len)); in audit_receive_msg()
Dkcov.c734 remote_arg_size = struct_size(remote_arg, handles, in kcov_ioctl()
Dkprobes.c2247 inst = kzalloc(struct_size(inst, data, rp->data_size), GFP_KERNEL); in register_kretprobe()
2270 inst = kzalloc(struct_size(inst, data, rp->data_size), GFP_KERNEL); in register_kretprobe()
Dworkqueue.c4367 ctx = kzalloc(struct_size(ctx, pwq_tbl, nr_cpu_ids), GFP_KERNEL); in apply_wqattrs_prepare()
/kernel/gcov/
Dfs.c119 iter = kvmalloc(struct_size(iter, buffer, size), GFP_KERNEL); in gcov_iter_new()
/kernel/trace/
Dtrace_eprobe.c210 ep = kzalloc(struct_size(ep, tp.args, nargs), GFP_KERNEL); in alloc_event_probe()
Dtrace_events_synth.c445 data->as_dynamic.offset = struct_size(entry, fields, event->n_u64) + data_size; in trace_string()
481 data_offset = struct_size(entry, fields, event->n_u64); in trace_stack()
Dtrace_fprobe.c376 tf = kzalloc(struct_size(tf, tp.args, nargs), GFP_KERNEL); in alloc_trace_fprobe()
Dtrace_uprobe.c336 tu = kzalloc(struct_size(tu, tp.args, nargs), GFP_KERNEL); in alloc_trace_uprobe()
Dtrace_kprobe.c267 tk = kzalloc(struct_size(tk, tp.args, nargs), GFP_KERNEL); in alloc_trace_kprobe()
Dtrace_events_user.c2301 size = struct_size(refs, events, count + 1); in user_events_ref_add()
Dtrace.c2871 int max_len = PAGE_SIZE - struct_size(entry, array, 1); in trace_event_buffer_lock_reserve()
3145 struct_size(entry, caller, nr_entries), in __ftrace_trace_stack()

12