/kernel/trace/ |
D | trace.c | 684 const char __user *ubuf, size_t cnt) in trace_pid_write() argument 725 ret = trace_get_user(&parser, ubuf, cnt, &pos); in trace_pid_write() 730 ubuf += ret; in trace_pid_write() 1610 int trace_get_user(struct trace_parser *parser, const char __user *ubuf, in trace_get_user() argument 1620 ret = get_user(ch, ubuf++); in trace_get_user() 1634 ret = get_user(ch, ubuf++); in trace_get_user() 1659 ret = get_user(ch, ubuf++); in trace_get_user() 5140 tracing_write_stub(struct file *filp, const char __user *ubuf, in tracing_write_stub() argument 5176 tracing_cpumask_read(struct file *filp, char __user *ubuf, in tracing_cpumask_read() argument 5195 count = simple_read_from_buffer(ubuf, count, ppos, mask_str, len); in tracing_cpumask_read() [all …]
|
D | trace_events.c | 1169 ftrace_event_write(struct file *file, const char __user *ubuf, in ftrace_event_write() argument 1187 read = trace_get_user(&parser, ubuf, cnt, ppos); in ftrace_event_write() 1370 event_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in event_enable_read() argument 1396 return simple_read_from_buffer(ubuf, cnt, ppos, buf, strlen(buf)); in event_enable_read() 1400 event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, in event_enable_write() argument 1407 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in event_enable_write() 1436 system_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in system_enable_read() argument 1477 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); in system_enable_read() 1483 system_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, in system_enable_write() argument 1492 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in system_enable_write() [all …]
|
D | trace_stack.c | 324 stack_max_size_read(struct file *filp, char __user *ubuf, in stack_max_size_read() argument 334 return simple_read_from_buffer(ubuf, count, ppos, buf, r); in stack_max_size_read() 338 stack_max_size_write(struct file *filp, const char __user *ubuf, in stack_max_size_write() argument 345 ret = kstrtoul_from_user(ubuf, count, 10, &val); in stack_max_size_write()
|
D | trace_seq.c | 370 int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, int cnt) in trace_seq_to_user() argument 373 return seq_buf_to_user(&s->seq, ubuf, cnt); in trace_seq_to_user()
|
D | trace_events_inject.c | 284 event_inject_write(struct file *filp, const char __user *ubuf, size_t cnt, in event_inject_write() argument 296 buf = memdup_user_nul(ubuf, cnt); in event_inject_write()
|
D | trace_mmiotrace.c | 132 char __user *ubuf, size_t cnt, loff_t *ppos) in mmio_read() argument 161 ret = trace_seq_to_user(s, ubuf, cnt); in mmio_read()
|
D | trace_events_filter.c | 709 struct ustring_buffer *ubuf; in test_string() local 715 ubuf = this_cpu_ptr(ustring_per_cpu); in test_string() 716 kstr = ubuf->buffer; in test_string() 726 struct ustring_buffer *ubuf; in test_ustring() local 733 ubuf = this_cpu_ptr(ustring_per_cpu); in test_ustring() 734 kstr = ubuf->buffer; in test_ustring()
|
D | trace_functions_graph.c | 1299 graph_depth_write(struct file *filp, const char __user *ubuf, size_t cnt, in graph_depth_write() argument 1305 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in graph_depth_write() 1317 graph_depth_read(struct file *filp, char __user *ubuf, size_t cnt, in graph_depth_read() argument 1325 return simple_read_from_buffer(ubuf, cnt, ppos, buf, n); in graph_depth_read()
|
D | ftrace.c | 882 ftrace_profile_write(struct file *filp, const char __user *ubuf, in ftrace_profile_write() argument 888 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in ftrace_profile_write() 927 ftrace_profile_read(struct file *filp, char __user *ubuf, in ftrace_profile_read() argument 934 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in ftrace_profile_read() 5041 ftrace_regex_write(struct file *file, const char __user *ubuf, in ftrace_regex_write() argument 5063 read = trace_get_user(parser, ubuf, cnt, ppos); in ftrace_regex_write() 5080 ftrace_filter_write(struct file *file, const char __user *ubuf, in ftrace_filter_write() argument 5083 return ftrace_regex_write(file, ubuf, cnt, ppos, 1); in ftrace_filter_write() 5087 ftrace_notrace_write(struct file *file, const char __user *ubuf, in ftrace_notrace_write() argument 5090 return ftrace_regex_write(file, ubuf, cnt, ppos, 0); in ftrace_notrace_write() [all …]
|
D | trace_events_trigger.c | 274 const char __user *ubuf, in event_trigger_regex_write() argument 287 buf = memdup_user_nul(ubuf, cnt); in event_trigger_regex_write() 326 event_trigger_write(struct file *filp, const char __user *ubuf, in event_trigger_write() argument 329 return event_trigger_regex_write(filp, ubuf, cnt, ppos); in event_trigger_write()
|
D | trace_osnoise.c | 1876 osnoise_cpus_read(struct file *filp, char __user *ubuf, size_t count, in osnoise_cpus_read() argument 1897 count = simple_read_from_buffer(ubuf, count, ppos, mask_str, len); in osnoise_cpus_read() 1924 osnoise_cpus_write(struct file *filp, const char __user *ubuf, size_t count, in osnoise_cpus_write() argument 1934 if (copy_from_user(buf, ubuf, count)) in osnoise_cpus_write()
|
D | trace_hwlat.c | 680 static ssize_t hwlat_mode_write(struct file *filp, const char __user *ubuf, in hwlat_mode_write() argument 691 if (copy_from_user(buf, ubuf, cnt)) in hwlat_mode_write()
|
D | trace_events_user.c | 1490 static ssize_t user_events_write(struct file *file, const char __user *ubuf, in user_events_write() argument 1499 if (unlikely(import_single_range(ITER_SOURCE, (char __user *)ubuf, in user_events_write() 1632 void __user *ubuf = (void __user *)uarg; in user_events_ioctl_del() local 1636 name = strndup_user(ubuf, MAX_EVENT_DESC); in user_events_ioctl_del()
|
D | trace.h | 545 struct file *filp, char __user *ubuf, 692 const char __user *ubuf, size_t cnt); 1153 extern int trace_get_user(struct trace_parser *parser, const char __user *ubuf,
|
/kernel/bpf/ |
D | bpf_iter.c | 459 char __user *ubuf = u64_to_user_ptr(info->iter.target_name); in bpf_iter_link_fill_link_info() local 465 if (!ulen ^ !ubuf) in bpf_iter_link_fill_link_info() 472 if (ubuf) { in bpf_iter_link_fill_link_info() 474 if (copy_to_user(ubuf, target_name, target_len + 1)) in bpf_iter_link_fill_link_info() 479 if (copy_to_user(ubuf, target_name, ulen - 1)) in bpf_iter_link_fill_link_info() 481 if (put_user(zero, ubuf + ulen - 1)) in bpf_iter_link_fill_link_info()
|
D | syscall.c | 3183 char __user *ubuf = u64_to_user_ptr(info->raw_tracepoint.tp_name); in bpf_raw_tp_link_fill_link_info() local 3188 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info() 3193 if (!ubuf) in bpf_raw_tp_link_fill_link_info() 3197 if (copy_to_user(ubuf, tp_name, tp_len + 1)) in bpf_raw_tp_link_fill_link_info() 3202 if (copy_to_user(ubuf, tp_name, ulen - 1)) in bpf_raw_tp_link_fill_link_info() 3204 if (put_user(zero, ubuf + ulen - 1)) in bpf_raw_tp_link_fill_link_info() 4366 char __user *ubuf = u64_to_user_ptr(attr->task_fd_query.buf); in bpf_task_fd_query_copy() local 4373 if (input_len && ubuf) { in bpf_task_fd_query_copy() 4378 if (put_user(zero, ubuf)) in bpf_task_fd_query_copy() 4382 if (copy_to_user(ubuf, buf, len + 1)) in bpf_task_fd_query_copy() [all …]
|
D | verifier.c | 313 if (!copy_to_user(log->ubuf + log->len_used, log->kbuf, n + 1)) in bpf_verifier_vlog() 316 log->ubuf = NULL; in bpf_verifier_vlog() 327 if (put_user(zero, log->ubuf + new_pos)) in bpf_vlog_reset() 328 log->ubuf = NULL; in bpf_vlog_reset() 15530 log->ubuf = (char __user *) (unsigned long) attr->log_buf; in bpf_check() 15655 if (log->level && !log->ubuf) { in bpf_check()
|
D | btf.c | 5006 log->ubuf = log_ubuf; in btf_parse()
|
/kernel/sched/ |
D | debug.c | 126 sched_feat_write(struct file *filp, const char __user *ubuf, in sched_feat_write() argument 137 if (copy_from_user(&buf, ubuf, cnt)) in sched_feat_write() 173 static ssize_t sched_scaling_write(struct file *filp, const char __user *ubuf, in sched_scaling_write() argument 182 if (copy_from_user(&buf, ubuf, cnt)) in sched_scaling_write() 223 static ssize_t sched_dynamic_write(struct file *filp, const char __user *ubuf, in sched_dynamic_write() argument 232 if (copy_from_user(&buf, ubuf, cnt)) in sched_dynamic_write()
|