Lines Matching refs:file
2866 struct trace_event_file *file; in output_printk() local
2880 file = fbuffer->trace_file; in output_printk()
2881 if (test_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &file->flags) || in output_printk()
2882 (unlikely(file->flags & EVENT_FILE_FL_FILTERED) && in output_printk()
2883 !filter_match_preds(file->filter, fbuffer->entry))) in output_printk()
2934 struct trace_event_file *file = fbuffer->trace_file; in trace_event_buffer_commit() local
2936 if (__event_trigger_test_discard(file, fbuffer->buffer, fbuffer->event, in trace_event_buffer_commit()
2946 trace_buffer_unlock_commit_regs(file->tr, fbuffer->buffer, in trace_event_buffer_commit()
2951 event_triggers_post_call(file, tt); in trace_event_buffer_commit()
4735 __tracing_open(struct inode *inode, struct file *file, bool snapshot) in __tracing_open() argument
4744 iter = __seq_open_private(file, &tracer_seq_ops, sizeof(*iter)); in __tracing_open()
4853 seq_release_private(inode, file); in __tracing_open()
4857 int tracing_open_generic(struct inode *inode, struct file *filp) in tracing_open_generic()
4878 int tracing_open_generic_tr(struct inode *inode, struct file *filp) in tracing_open_generic_tr()
4896 int tracing_open_file_tr(struct inode *inode, struct file *filp) in tracing_open_file_tr()
4898 struct trace_event_file *file = inode->i_private; in tracing_open_file_tr() local
4901 ret = tracing_check_open_get_tr(file->tr); in tracing_open_file_tr()
4910 int tracing_release_file_tr(struct inode *inode, struct file *filp) in tracing_release_file_tr()
4912 struct trace_event_file *file = inode->i_private; in tracing_release_file_tr() local
4914 trace_array_put(file->tr); in tracing_release_file_tr()
4919 int tracing_single_release_file_tr(struct inode *inode, struct file *filp) in tracing_single_release_file_tr()
4925 static int tracing_mark_open(struct inode *inode, struct file *filp) in tracing_mark_open()
4931 static int tracing_release(struct inode *inode, struct file *file) in tracing_release() argument
4934 struct seq_file *m = file->private_data; in tracing_release()
4938 if (!(file->f_mode & FMODE_READ)) { in tracing_release()
4969 seq_release_private(inode, file); in tracing_release()
4974 static int tracing_release_generic_tr(struct inode *inode, struct file *file) in tracing_release_generic_tr() argument
4982 static int tracing_single_release_tr(struct inode *inode, struct file *file) in tracing_single_release_tr() argument
4988 return single_release(inode, file); in tracing_single_release_tr()
4991 static int tracing_open(struct inode *inode, struct file *file) in tracing_open() argument
5002 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in tracing_open()
5017 if (file->f_mode & FMODE_READ) { in tracing_open()
5018 iter = __tracing_open(inode, file, false); in tracing_open()
5109 static int show_traces_open(struct inode *inode, struct file *file) in show_traces_open() argument
5119 ret = seq_open(file, &show_traces_seq_ops); in show_traces_open()
5125 m = file->private_data; in show_traces_open()
5131 static int show_traces_release(struct inode *inode, struct file *file) in show_traces_release() argument
5136 return seq_release(inode, file); in show_traces_release()
5140 tracing_write_stub(struct file *filp, const char __user *ubuf, in tracing_write_stub()
5146 loff_t tracing_lseek(struct file *file, loff_t offset, int whence) in tracing_lseek() argument
5150 if (file->f_mode & FMODE_READ) in tracing_lseek()
5151 ret = seq_lseek(file, offset, whence); in tracing_lseek()
5153 file->f_pos = ret = 0; in tracing_lseek()
5176 tracing_cpumask_read(struct file *filp, char __user *ubuf, in tracing_cpumask_read()
5244 tracing_cpumask_write(struct file *filp, const char __user *ubuf, in tracing_cpumask_write()
5482 tracing_trace_options_write(struct file *filp, const char __user *ubuf, in tracing_trace_options_write()
5507 static int tracing_trace_options_open(struct inode *inode, struct file *file) in tracing_trace_options_open() argument
5516 ret = single_open(file, tracing_trace_options_show, inode->i_private); in tracing_trace_options_open()
5810 tracing_readme_read(struct file *filp, char __user *ubuf, in tracing_readme_read()
5861 static int tracing_saved_tgids_open(struct inode *inode, struct file *filp) in tracing_saved_tgids_open()
5941 static int tracing_saved_cmdlines_open(struct inode *inode, struct file *filp) in tracing_saved_cmdlines_open()
5960 tracing_saved_cmdlines_size_read(struct file *filp, char __user *ubuf, 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()
6099 static int tracing_eval_map_open(struct inode *inode, struct file *filp) in tracing_eval_map_open()
6202 tracing_set_trace_read(struct file *filp, char __user *ubuf, in tracing_set_trace_read()
6526 tracing_set_trace_write(struct file *filp, const char __user *ubuf, in tracing_set_trace_write()
6587 tracing_thresh_read(struct file *filp, char __user *ubuf, in tracing_thresh_read()
6594 tracing_thresh_write(struct file *filp, const char __user *ubuf, in tracing_thresh_write()
6621 tracing_max_lat_read(struct file *filp, char __user *ubuf, in tracing_max_lat_read()
6630 tracing_max_lat_write(struct file *filp, const char __user *ubuf, in tracing_max_lat_write()
6640 static int tracing_open_pipe(struct inode *inode, struct file *filp) in tracing_open_pipe()
6701 static int tracing_release_pipe(struct inode *inode, struct file *file) in tracing_release_pipe() argument
6703 struct trace_iterator *iter = file->private_data; in tracing_release_pipe()
6727 trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_table) in trace_poll()
6746 tracing_poll_pipe(struct file *filp, poll_table *poll_table) in tracing_poll_pipe()
6754 static int tracing_wait_pipe(struct file *filp) in tracing_wait_pipe()
6794 tracing_read_pipe(struct file *filp, char __user *ubuf, in tracing_read_pipe()
6952 static ssize_t tracing_splice_read_pipe(struct file *filp, in tracing_splice_read_pipe()
7039 tracing_entries_read(struct file *filp, char __user *ubuf, in tracing_entries_read()
7087 tracing_entries_write(struct file *filp, const char __user *ubuf, in tracing_entries_write()
7115 tracing_total_entries_read(struct file *filp, char __user *ubuf, in tracing_total_entries_read()
7139 tracing_free_buffer_write(struct file *filp, const char __user *ubuf, in tracing_free_buffer_write()
7153 tracing_free_buffer_release(struct inode *inode, struct file *filp) in tracing_free_buffer_release()
7169 tracing_mark_write(struct file *filp, const char __user *ubuf, in tracing_mark_write()
7246 tracing_mark_raw_write(struct file *filp, const char __user *ubuf, in tracing_mark_raw_write()
7349 static ssize_t tracing_clock_write(struct file *filp, const char __user *ubuf, in tracing_clock_write()
7377 static int tracing_clock_open(struct inode *inode, struct file *file) in tracing_clock_open() argument
7386 ret = single_open(file, tracing_clock_show, inode->i_private); in tracing_clock_open()
7409 static int tracing_time_stamp_mode_open(struct inode *inode, struct file *file) in tracing_time_stamp_mode_open() argument
7418 ret = single_open(file, tracing_time_stamp_mode_show, inode->i_private); in tracing_time_stamp_mode_open()
7467 static int tracing_snapshot_open(struct inode *inode, struct file *file) in tracing_snapshot_open() argument
7478 if (file->f_mode & FMODE_READ) { in tracing_snapshot_open()
7479 iter = __tracing_open(inode, file, true); in tracing_snapshot_open()
7499 file->private_data = m; in tracing_snapshot_open()
7514 tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt, in tracing_snapshot_write()
7600 static int tracing_snapshot_release(struct inode *inode, struct file *file) in tracing_snapshot_release() argument
7602 struct seq_file *m = file->private_data; in tracing_snapshot_release()
7605 ret = tracing_release(inode, file); in tracing_snapshot_release()
7607 if (file->f_mode & FMODE_READ) in tracing_snapshot_release()
7618 static int tracing_buffers_open(struct inode *inode, struct file *filp);
7619 static ssize_t tracing_buffers_read(struct file *filp, char __user *ubuf,
7621 static int tracing_buffers_release(struct inode *inode, struct file *file);
7622 static ssize_t tracing_buffers_splice_read(struct file *file, loff_t *ppos,
7625 static int snapshot_raw_open(struct inode *inode, struct file *filp) in snapshot_raw_open()
7765 trace_min_max_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) 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()
8061 static int tracing_err_log_open(struct inode *inode, struct file *file) in tracing_err_log_open() argument
8071 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) in tracing_err_log_open()
8074 if (file->f_mode & FMODE_READ) { in tracing_err_log_open()
8075 ret = seq_open(file, &tracing_err_log_seq_ops); in tracing_err_log_open()
8077 struct seq_file *m = file->private_data; in tracing_err_log_open()
8086 static ssize_t tracing_err_log_write(struct file *file, in tracing_err_log_write() argument
8093 static int tracing_err_log_release(struct inode *inode, struct file *file) in tracing_err_log_release() argument
8099 if (file->f_mode & FMODE_READ) in tracing_err_log_release()
8100 seq_release(inode, file); in tracing_err_log_release()
8113 static int tracing_buffers_open(struct inode *inode, struct file *filp) in tracing_buffers_open()
8153 tracing_buffers_poll(struct file *filp, poll_table *poll_table) in tracing_buffers_poll()
8162 tracing_buffers_read(struct file *filp, char __user *ubuf, in tracing_buffers_read()
8235 static int tracing_buffers_release(struct inode *inode, struct file *file) in tracing_buffers_release() argument
8237 struct ftrace_buffer_info *info = file->private_data; in tracing_buffers_release()
8318 tracing_buffers_splice_read(struct file *file, loff_t *ppos, in tracing_buffers_splice_read() argument
8322 struct ftrace_buffer_info *info = file->private_data; in tracing_buffers_splice_read()
8411 if ((file->f_flags & O_NONBLOCK) || (flags & SPLICE_F_NONBLOCK)) in tracing_buffers_splice_read()
8440 static long tracing_buffers_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in tracing_buffers_ioctl() argument
8442 struct ftrace_buffer_info *info = file->private_data; in tracing_buffers_ioctl()
8471 tracing_stats_read(struct file *filp, char __user *ubuf, in tracing_stats_read()
8544 tracing_read_dyn_info(struct file *filp, char __user *ubuf, in tracing_read_dyn_info()
8823 trace_options_read(struct file *filp, char __user *ubuf, size_t cnt, in trace_options_read()
8838 trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, in trace_options_write()
8866 static int tracing_open_options(struct inode *inode, struct file *filp) in tracing_open_options()
8879 static int tracing_release_options(struct inode *inode, struct file *file) in tracing_release_options() argument
8881 struct trace_option_dentry *topt = file->private_data; in tracing_release_options()
8929 trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt, 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()
9138 rb_simple_read(struct file *filp, char __user *ubuf, in rb_simple_read()
9152 rb_simple_write(struct file *filp, const char __user *ubuf, in rb_simple_write()
9196 buffer_percent_read(struct file *filp, char __user *ubuf, in buffer_percent_read()
9210 buffer_percent_write(struct file *filp, const char __user *ubuf, in buffer_percent_write()
9635 struct trace_event_file *file; in init_tracer_tracefs() local
9668 file = __find_event_file(tr, "ftrace", "print"); in init_tracer_tracefs()
9669 if (file && file->dir) in init_tracer_tracefs()
9670 trace_create_file("trigger", TRACE_MODE_WRITE, file->dir, in init_tracer_tracefs()
9671 file, &event_trigger_fops); in init_tracer_tracefs()
9672 tr->trace_marker_file = file; in init_tracer_tracefs()
10185 ssize_t trace_parse_run_command(struct file *file, const char __user *buffer, in trace_parse_run_command() argument