Lines Matching refs:inode
4720 static inline int tracing_get_cpu(struct inode *inode) in tracing_get_cpu() argument
4722 if (inode->i_cdev) /* See trace_create_cpu_file() */ in tracing_get_cpu()
4723 return (long)inode->i_cdev - 1; in tracing_get_cpu()
4735 __tracing_open(struct inode *inode, struct file *file, bool snapshot) in __tracing_open() argument
4737 struct trace_array *tr = inode->i_private; in __tracing_open()
4800 iter->cpu_file = tracing_get_cpu(inode); 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() argument
4865 filp->private_data = inode->i_private; in tracing_open_generic()
4878 int tracing_open_generic_tr(struct inode *inode, struct file *filp) in tracing_open_generic_tr() argument
4880 struct trace_array *tr = inode->i_private; in tracing_open_generic_tr()
4887 filp->private_data = inode->i_private; in tracing_open_generic_tr()
4896 int tracing_open_file_tr(struct inode *inode, struct file *filp) in tracing_open_file_tr() argument
4898 struct trace_event_file *file = inode->i_private; in tracing_open_file_tr()
4905 filp->private_data = inode->i_private; in tracing_open_file_tr()
4910 int tracing_release_file_tr(struct inode *inode, struct file *filp) in tracing_release_file_tr() argument
4912 struct trace_event_file *file = inode->i_private; in tracing_release_file_tr()
4919 int tracing_single_release_file_tr(struct inode *inode, struct file *filp) in tracing_single_release_file_tr() argument
4921 tracing_release_file_tr(inode, filp); in tracing_single_release_file_tr()
4922 return single_release(inode, filp); in tracing_single_release_file_tr()
4925 static int tracing_mark_open(struct inode *inode, struct file *filp) in tracing_mark_open() argument
4927 stream_open(inode, filp); in tracing_mark_open()
4928 return tracing_open_generic_tr(inode, filp); in tracing_mark_open()
4931 static int tracing_release(struct inode *inode, struct file *file) in tracing_release() argument
4933 struct trace_array *tr = inode->i_private; 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
4976 struct trace_array *tr = inode->i_private; in tracing_release_generic_tr()
4982 static int tracing_single_release_tr(struct inode *inode, struct file *file) in tracing_single_release_tr() argument
4984 struct trace_array *tr = inode->i_private; in tracing_single_release_tr()
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
4993 struct trace_array *tr = inode->i_private; in tracing_open()
5003 int cpu = tracing_get_cpu(inode); 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
5111 struct trace_array *tr = inode->i_private; in show_traces_open()
5131 static int show_traces_release(struct inode *inode, struct file *file) in show_traces_release() argument
5133 struct trace_array *tr = inode->i_private; in show_traces_release()
5136 return seq_release(inode, file); in show_traces_release()
5507 static int tracing_trace_options_open(struct inode *inode, struct file *file) in tracing_trace_options_open() argument
5509 struct trace_array *tr = inode->i_private; in tracing_trace_options_open()
5516 ret = single_open(file, tracing_trace_options_show, inode->i_private); in tracing_trace_options_open()
5861 static int tracing_saved_tgids_open(struct inode *inode, struct file *filp) in tracing_saved_tgids_open() argument
5941 static int tracing_saved_cmdlines_open(struct inode *inode, struct file *filp) in tracing_saved_cmdlines_open() argument
6099 static int tracing_eval_map_open(struct inode *inode, struct file *filp) in tracing_eval_map_open() argument
6640 static int tracing_open_pipe(struct inode *inode, struct file *filp) in tracing_open_pipe() argument
6642 struct trace_array *tr = inode->i_private; in tracing_open_pipe()
6680 iter->cpu_file = tracing_get_cpu(inode); in tracing_open_pipe()
6687 nonseekable_open(inode, filp); in tracing_open_pipe()
6701 static int tracing_release_pipe(struct inode *inode, struct file *file) in tracing_release_pipe() argument
6704 struct trace_array *tr = inode->i_private; in tracing_release_pipe()
7042 struct inode *inode = file_inode(filp); in tracing_entries_read() local
7043 struct trace_array *tr = inode->i_private; in tracing_entries_read()
7044 int cpu = tracing_get_cpu(inode); in tracing_entries_read()
7090 struct inode *inode = file_inode(filp); in tracing_entries_write() local
7091 struct trace_array *tr = inode->i_private; in tracing_entries_write()
7105 ret = tracing_resize_ring_buffer(tr, val, tracing_get_cpu(inode)); in tracing_entries_write()
7153 tracing_free_buffer_release(struct inode *inode, struct file *filp) in tracing_free_buffer_release() argument
7155 struct trace_array *tr = inode->i_private; in tracing_free_buffer_release()
7377 static int tracing_clock_open(struct inode *inode, struct file *file) in tracing_clock_open() argument
7379 struct trace_array *tr = inode->i_private; in tracing_clock_open()
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
7411 struct trace_array *tr = inode->i_private; in tracing_time_stamp_mode_open()
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
7469 struct trace_array *tr = inode->i_private; in tracing_snapshot_open()
7479 iter = __tracing_open(inode, file, true); in tracing_snapshot_open()
7497 iter->cpu_file = tracing_get_cpu(inode); in tracing_snapshot_open()
7600 static int tracing_snapshot_release(struct inode *inode, struct file *file) in tracing_snapshot_release() argument
7605 ret = tracing_release(inode, file); in tracing_snapshot_release()
7618 static int tracing_buffers_open(struct inode *inode, struct file *filp);
7621 static int tracing_buffers_release(struct inode *inode, struct file *file);
7625 static int snapshot_raw_open(struct inode *inode, struct file *filp) in snapshot_raw_open() argument
7631 ret = tracing_buffers_open(inode, filp); in snapshot_raw_open()
7638 tracing_buffers_release(inode, filp); in snapshot_raw_open()
8061 static int tracing_err_log_open(struct inode *inode, struct file *file) in tracing_err_log_open() argument
8063 struct trace_array *tr = inode->i_private; in tracing_err_log_open()
8093 static int tracing_err_log_release(struct inode *inode, struct file *file) in tracing_err_log_release() argument
8095 struct trace_array *tr = inode->i_private; 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() argument
8115 struct trace_array *tr = inode->i_private; in tracing_buffers_open()
8132 info->iter.cpu_file = tracing_get_cpu(inode); in tracing_buffers_open()
8145 ret = nonseekable_open(inode, filp); in tracing_buffers_open()
8235 static int tracing_buffers_release(struct inode *inode, struct file *file) in tracing_buffers_release() argument
8474 struct inode *inode = file_inode(filp); in tracing_stats_read() local
8475 struct trace_array *tr = inode->i_private; in tracing_stats_read()
8477 int cpu = tracing_get_cpu(inode); in tracing_stats_read()
8866 static int tracing_open_options(struct inode *inode, struct file *filp) in tracing_open_options() argument
8868 struct trace_option_dentry *topt = inode->i_private; in tracing_open_options()
8875 filp->private_data = inode->i_private; in tracing_open_options()
8879 static int tracing_release_options(struct inode *inode, struct file *file) in tracing_release_options() argument