Home
last modified time | relevance | path

Searched refs:kdata (Results 1 – 3 of 3) sorted by relevance

/kernel/trace/
Dtrace_hwlat.c165 struct hwlat_kthread_data *kdata = get_cpu_data(); in trace_hwlat_callback() local
167 if (!kdata->kthread) in trace_hwlat_callback()
176 kdata->nmi_ts_start = time_get(); in trace_hwlat_callback()
178 kdata->nmi_total_ts += time_get() - kdata->nmi_ts_start; in trace_hwlat_callback()
182 kdata->nmi_count++; in trace_hwlat_callback()
203 struct hwlat_kthread_data *kdata = get_cpu_data(); in get_sample() local
216 kdata->nmi_total_ts = 0; in get_sample()
217 kdata->nmi_count = 0; in get_sample()
287 if (kdata->nmi_total_ts) in get_sample()
288 do_div(kdata->nmi_total_ts, NSEC_PER_USEC); in get_sample()
[all …]
/kernel/
Dcapability.c167 struct __user_cap_data_struct kdata[_KERNEL_CAPABILITY_U32S]; in SYSCALL_DEFINE2() local
171 kdata[i].effective = pE.cap[i]; in SYSCALL_DEFINE2()
172 kdata[i].permitted = pP.cap[i]; in SYSCALL_DEFINE2()
173 kdata[i].inheritable = pI.cap[i]; in SYSCALL_DEFINE2()
195 if (copy_to_user(dataptr, kdata, tocopy in SYSCALL_DEFINE2()
224 struct __user_cap_data_struct kdata[_KERNEL_CAPABILITY_U32S]; in SYSCALL_DEFINE2() local
243 if (copybytes > sizeof(kdata)) in SYSCALL_DEFINE2()
246 if (copy_from_user(&kdata, data, copybytes)) in SYSCALL_DEFINE2()
250 effective.cap[i] = kdata[i].effective; in SYSCALL_DEFINE2()
251 permitted.cap[i] = kdata[i].permitted; in SYSCALL_DEFINE2()
[all …]
/kernel/bpf/
Dbpf_struct_ops.c361 void *udata, *kdata; in bpf_struct_ops_map_update_elem() local
401 kdata = &kvalue->data; in bpf_struct_ops_map_update_elem()
416 *(void **)(kdata + moff) = BPF_MODULE_OWNER; in bpf_struct_ops_map_update_elem()
420 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem()
487 *(void **)(kdata + moff) = image; in bpf_struct_ops_map_update_elem()
499 err = st_ops->reg(kdata); in bpf_struct_ops_map_update_elem()
661 bool bpf_struct_ops_get(const void *kdata) in bpf_struct_ops_get() argument
665 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); in bpf_struct_ops_get()
678 void bpf_struct_ops_put(const void *kdata) in bpf_struct_ops_put() argument
682 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); in bpf_struct_ops_put()