• Home
  • Raw
  • Download

Lines Matching refs:ubuf

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()
5244 tracing_cpumask_write(struct file *filp, const char __user *ubuf, in tracing_cpumask_write() argument
5254 err = cpumask_parse_user(ubuf, count, tracing_cpumask_new); in tracing_cpumask_write()
5482 tracing_trace_options_write(struct file *filp, const char __user *ubuf, in tracing_trace_options_write() argument
5493 if (copy_from_user(buf, ubuf, cnt)) in tracing_trace_options_write()
5810 tracing_readme_read(struct file *filp, char __user *ubuf, in tracing_readme_read() argument
5813 return simple_read_from_buffer(ubuf, cnt, ppos, in tracing_readme_read()
5960 tracing_saved_cmdlines_size_read(struct file *filp, char __user *ubuf, in tracing_saved_cmdlines_size_read() argument
5972 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_saved_cmdlines_size_read()
5995 tracing_saved_cmdlines_size_write(struct file *filp, const char __user *ubuf, in tracing_saved_cmdlines_size_write() argument
6001 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in tracing_saved_cmdlines_size_write()
6202 tracing_set_trace_read(struct file *filp, char __user *ubuf, in tracing_set_trace_read() argument
6213 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_set_trace_read()
6526 tracing_set_trace_write(struct file *filp, const char __user *ubuf, in tracing_set_trace_write() argument
6540 if (copy_from_user(buf, ubuf, cnt)) in tracing_set_trace_write()
6557 tracing_nsecs_read(unsigned long *ptr, char __user *ubuf, in tracing_nsecs_read() argument
6567 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_nsecs_read()
6571 tracing_nsecs_write(unsigned long *ptr, const char __user *ubuf, in tracing_nsecs_write() argument
6577 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in tracing_nsecs_write()
6587 tracing_thresh_read(struct file *filp, char __user *ubuf, in tracing_thresh_read() argument
6590 return tracing_nsecs_read(&tracing_thresh, ubuf, cnt, ppos); in tracing_thresh_read()
6594 tracing_thresh_write(struct file *filp, const char __user *ubuf, in tracing_thresh_write() argument
6601 ret = tracing_nsecs_write(&tracing_thresh, ubuf, cnt, ppos); in tracing_thresh_write()
6621 tracing_max_lat_read(struct file *filp, char __user *ubuf, in tracing_max_lat_read() argument
6626 return tracing_nsecs_read(&tr->max_latency, ubuf, cnt, ppos); in tracing_max_lat_read()
6630 tracing_max_lat_write(struct file *filp, const char __user *ubuf, in tracing_max_lat_write() argument
6635 return tracing_nsecs_write(&tr->max_latency, ubuf, cnt, ppos); in tracing_max_lat_write()
6794 tracing_read_pipe(struct file *filp, char __user *ubuf, in tracing_read_pipe() argument
6808 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
6815 sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); in tracing_read_pipe()
6882 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); in tracing_read_pipe()
7039 tracing_entries_read(struct file *filp, char __user *ubuf, in tracing_entries_read() argument
7082 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_entries_read()
7087 tracing_entries_write(struct file *filp, const char __user *ubuf, in tracing_entries_write() argument
7095 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in tracing_entries_write()
7115 tracing_total_entries_read(struct file *filp, char __user *ubuf, in tracing_total_entries_read() argument
7135 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_total_entries_read()
7139 tracing_free_buffer_write(struct file *filp, const char __user *ubuf, in tracing_free_buffer_write() argument
7169 tracing_mark_write(struct file *filp, const char __user *ubuf, in tracing_mark_write() argument
7212 len = __copy_from_user_inatomic(&entry->buf, ubuf, cnt); in tracing_mark_write()
7246 tracing_mark_raw_write(struct file *filp, const char __user *ubuf, in tracing_mark_raw_write() argument
7287 len = __copy_from_user_inatomic(&entry->id, ubuf, cnt); in tracing_mark_raw_write()
7349 static ssize_t tracing_clock_write(struct file *filp, const char __user *ubuf, in tracing_clock_write() argument
7361 if (copy_from_user(buf, ubuf, cnt)) in tracing_clock_write()
7514 tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt, in tracing_snapshot_write() argument
7527 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in tracing_snapshot_write()
7619 static ssize_t tracing_buffers_read(struct file *filp, char __user *ubuf,
7765 trace_min_max_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) in trace_min_max_write() argument
7774 err = kstrtoull_from_user(ubuf, cnt, 10, &val); in trace_min_max_write()
7811 trace_min_max_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in trace_min_max_read() argument
7828 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); in trace_min_max_read()
8162 tracing_buffers_read(struct file *filp, char __user *ubuf, in tracing_buffers_read() argument
8223 ret = copy_to_user(ubuf, info->spare + info->read, size); in tracing_buffers_read()
8471 tracing_stats_read(struct file *filp, char __user *ubuf, in tracing_stats_read() argument
8526 count = simple_read_from_buffer(ubuf, count, ppos, in tracing_stats_read()
8544 tracing_read_dyn_info(struct file *filp, char __user *ubuf, in tracing_read_dyn_info() argument
8561 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_read_dyn_info()
8823 trace_options_read(struct file *filp, char __user *ubuf, size_t cnt, in trace_options_read() argument
8834 return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); in trace_options_read()
8838 trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, in trace_options_write() argument
8845 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in trace_options_write()
8929 trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt, in trace_options_core_read() argument
8944 return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); in trace_options_core_read()
8948 trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt, in trace_options_core_write() argument
8959 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in trace_options_core_write()
9138 rb_simple_read(struct file *filp, char __user *ubuf, in rb_simple_read() argument
9148 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in rb_simple_read()
9152 rb_simple_write(struct file *filp, const char __user *ubuf, in rb_simple_write() argument
9160 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in rb_simple_write()
9196 buffer_percent_read(struct file *filp, char __user *ubuf, in buffer_percent_read() argument
9206 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in buffer_percent_read()
9210 buffer_percent_write(struct file *filp, const char __user *ubuf, in buffer_percent_write() argument
9217 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in buffer_percent_write()