Lines Matching refs:tr

211 	struct trace_array		*tr;  member
258 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data);
440 extern int trace_array_get(struct trace_array *tr);
441 extern int tracing_check_open_get_tr(struct trace_array *tr);
446 extern int tracing_set_filter_buffering(struct trace_array *tr, bool set);
447 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
449 extern bool trace_clock_in_ns(struct trace_array *tr);
457 struct trace_array *tr; in top_trace_array() local
462 tr = list_entry(ftrace_trace_arrays.prev, in top_trace_array()
463 typeof(*tr), list); in top_trace_array()
464 WARN_ON(!(tr->flags & TRACE_ARRAY_FL_GLOBAL)); in top_trace_array()
465 return tr; in top_trace_array()
549 struct trace_array *tr; member
575 int (*init)(struct trace_array *tr);
576 void (*reset)(struct trace_array *tr);
577 void (*start)(struct trace_array *tr);
578 void (*stop)(struct trace_array *tr);
579 int (*update_thresh)(struct trace_array *tr);
595 struct trace_array *tr);
600 int (*set_flag)(struct trace_array *tr,
603 int (*flag_changed)(struct trace_array *tr,
623 int tracer_init(struct tracer *t, struct trace_array *tr);
635 bool tracer_tracing_is_on(struct trace_array *tr);
636 void tracer_tracing_on(struct trace_array *tr);
637 void tracer_tracing_off(struct trace_array *tr);
656 struct trace_entry *tracing_get_trace_entry(struct trace_array *tr,
679 unsigned long trace_total_entries_cpu(struct trace_array *tr, int cpu);
680 unsigned long trace_total_entries(struct trace_array *tr);
682 void trace_function(struct trace_array *tr,
686 void trace_graph_function(struct trace_array *tr,
736 void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu,
738 void update_max_tr_single(struct trace_array *tr,
747 void latency_fsnotify(struct trace_array *tr);
749 static inline void latency_fsnotify(struct trace_array *tr) { } in latency_fsnotify() argument
753 void __trace_stack(struct trace_array *tr, unsigned int trace_ctx, int skip);
755 static inline void __trace_stack(struct trace_array *tr, unsigned int trace_ctx, in __trace_stack() argument
761 void trace_last_func_repeats(struct trace_array *tr,
769 extern void trace_event_follow_fork(struct trace_array *tr, bool enable);
775 void ftrace_init_trace_array(struct trace_array *tr);
777 static inline void ftrace_init_trace_array(struct trace_array *tr) { } in ftrace_init_trace_array() argument
784 extern void trace_set_ring_buffer_expanded(struct trace_array *tr);
791 struct trace_array *tr);
793 struct trace_array *tr);
795 struct trace_array *tr);
797 struct trace_array *tr);
799 struct trace_array *tr);
801 struct trace_array *tr);
803 struct trace_array *tr);
805 struct trace_array *tr);
827 trace_array_vprintk(struct trace_array *tr,
900 extern int __trace_graph_entry(struct trace_array *tr,
903 extern void __trace_graph_return(struct trace_array *tr,
906 extern void init_array_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops);
907 extern int allocate_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops);
908 extern void free_fgraph_ops(struct trace_array *tr);
1073 static inline void free_fgraph_ops(struct trace_array *tr) { } in free_fgraph_ops() argument
1075 #define init_array_fgraph_ops(tr, ops) do { } while (0) argument
1076 #define allocate_fgraph_ops(tr, ops) ({ 0; }) argument
1089 int (*func)(struct trace_array *tr,
1095 static inline int ftrace_trace_task(struct trace_array *tr) in ftrace_trace_task() argument
1097 return this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid) != in ftrace_trace_task()
1101 int ftrace_create_function_files(struct trace_array *tr,
1103 void ftrace_destroy_function_files(struct trace_array *tr);
1104 int ftrace_allocate_ftrace_ops(struct trace_array *tr);
1105 void ftrace_free_ftrace_ops(struct trace_array *tr);
1106 void ftrace_init_global_array_ops(struct trace_array *tr);
1107 void ftrace_init_array_ops(struct trace_array *tr, ftrace_func_t func);
1108 void ftrace_reset_array_ops(struct trace_array *tr);
1109 void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d_tracer);
1110 void ftrace_init_tracefs_toplevel(struct trace_array *tr,
1112 void ftrace_clear_pids(struct trace_array *tr);
1114 void ftrace_pid_follow_fork(struct trace_array *tr, bool enable);
1116 static inline int ftrace_trace_task(struct trace_array *tr) in ftrace_trace_task() argument
1122 ftrace_create_function_files(struct trace_array *tr, in ftrace_create_function_files() argument
1127 static inline int ftrace_allocate_ftrace_ops(struct trace_array *tr) in ftrace_allocate_ftrace_ops() argument
1131 static inline void ftrace_free_ftrace_ops(struct trace_array *tr) { } in ftrace_free_ftrace_ops() argument
1132 static inline void ftrace_destroy_function_files(struct trace_array *tr) { } in ftrace_destroy_function_files() argument
1134 ftrace_init_global_array_ops(struct trace_array *tr) { } in ftrace_init_global_array_ops() argument
1135 static inline void ftrace_reset_array_ops(struct trace_array *tr) { } in ftrace_reset_array_ops() argument
1136 static inline void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d) { } in ftrace_init_tracefs() argument
1137 static inline void ftrace_init_tracefs_toplevel(struct trace_array *tr, struct dentry *d) { } in ftrace_init_tracefs_toplevel() argument
1138 static inline void ftrace_clear_pids(struct trace_array *tr) { } in ftrace_clear_pids() argument
1140 static inline void ftrace_pid_follow_fork(struct trace_array *tr, bool enable) { } in ftrace_pid_follow_fork() argument
1142 #define ftrace_init_array_ops(tr, func) do { } while (0) argument
1150 struct trace_array *tr,
1154 struct trace_array *tr,
1158 struct trace_array *tr,
1180 register_ftrace_function_probe(char *glob, struct trace_array *tr,
1183 unregister_ftrace_function_probe_func(char *glob, struct trace_array *tr,
1185 extern void clear_ftrace_function_probes(struct trace_array *tr);
1209 static inline void clear_ftrace_function_probes(struct trace_array *tr) in clear_ftrace_function_probes() argument
1364 extern int enable_branch_tracing(struct trace_array *tr);
1366 static inline int trace_branch_enable(struct trace_array *tr) in trace_branch_enable() argument
1368 if (tr->trace_flags & TRACE_ITER_BRANCH) in trace_branch_enable()
1369 return enable_branch_tracing(tr); in trace_branch_enable()
1378 static inline int trace_branch_enable(struct trace_array *tr) in trace_branch_enable() argument
1388 int tracing_update_buffers(struct trace_array *tr);
1426 struct trace_array *tr; member
1436 void trace_buffer_unlock_commit_regs(struct trace_array *tr,
1442 static inline void trace_buffer_unlock_commit(struct trace_array *tr, in trace_buffer_unlock_commit() argument
1447 trace_buffer_unlock_commit_regs(tr, buffer, event, trace_ctx, NULL); in trace_buffer_unlock_commit()
1465 void early_enable_events(struct trace_array *tr, char *buf, bool disable_first);
1549 trace_buffer_unlock_commit(file->tr, buffer, event, trace_ctx); in event_trigger_unlock_commit()
1614 extern int create_event_filter(struct trace_array *tr,
1628 extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr);
1629 extern int event_trace_del_tracer(struct trace_array *tr);
1630 extern void __trace_early_add_events(struct trace_array *tr);
1632 extern struct trace_event_file *__find_event_file(struct trace_array *tr,
1635 extern struct trace_event_file *find_event_file(struct trace_array *tr,
1684 extern void clear_event_triggers(struct trace_array *tr);
1988 extern void tracing_snapshot_cond(struct trace_array *tr, void *cond_data);
1989 extern int tracing_snapshot_cond_enable(struct trace_array *tr, void *cond_data, cond_update_fn_t u…
1991 extern int tracing_snapshot_cond_disable(struct trace_array *tr);
1992 extern void *tracing_cond_snapshot_data(struct trace_array *tr);
2003 int set_tracer_flag(struct trace_array *tr, unsigned int mask, int enabled);
2006 extern int trace_set_options(struct trace_array *tr, char *option);
2007 extern int tracing_set_tracer(struct trace_array *tr, const char *buf);
2008 extern ssize_t tracing_resize_ring_buffer(struct trace_array *tr,
2010 extern int tracing_set_cpumask(struct trace_array *tr,
2021 extern void tracing_log_err(struct trace_array *tr,
2071 extern int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
2079 void tracing_snapshot_instance(struct trace_array *tr);
2080 int tracing_alloc_snapshot_instance(struct trace_array *tr);
2081 int tracing_arm_snapshot(struct trace_array *tr);
2082 void tracing_disarm_snapshot(struct trace_array *tr);
2084 static inline void tracing_snapshot_instance(struct trace_array *tr) { } in tracing_snapshot_instance() argument
2085 static inline int tracing_alloc_snapshot_instance(struct trace_array *tr) in tracing_alloc_snapshot_instance() argument
2089 static inline int tracing_arm_snapshot(struct trace_array *tr) { return 0; } in tracing_arm_snapshot() argument
2090 static inline void tracing_disarm_snapshot(struct trace_array *tr) { } in tracing_disarm_snapshot() argument