• Home
  • Raw
  • Download

Lines Matching refs:tr

190 	struct trace_array		*tr;  member
237 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data);
400 extern int trace_array_get(struct trace_array *tr);
401 extern int tracing_check_open_get_tr(struct trace_array *tr);
406 extern int tracing_set_filter_buffering(struct trace_array *tr, bool set);
407 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
409 extern bool trace_clock_in_ns(struct trace_array *tr);
417 struct trace_array *tr; in top_trace_array() local
422 tr = list_entry(ftrace_trace_arrays.prev, in top_trace_array()
423 typeof(*tr), list); in top_trace_array()
424 WARN_ON(!(tr->flags & TRACE_ARRAY_FL_GLOBAL)); in top_trace_array()
425 return tr; in top_trace_array()
509 struct trace_array *tr; member
535 int (*init)(struct trace_array *tr);
536 void (*reset)(struct trace_array *tr);
537 void (*start)(struct trace_array *tr);
538 void (*stop)(struct trace_array *tr);
539 int (*update_thresh)(struct trace_array *tr);
555 struct trace_array *tr);
560 int (*set_flag)(struct trace_array *tr,
563 int (*flag_changed)(struct trace_array *tr,
583 int tracer_init(struct tracer *t, struct trace_array *tr);
595 bool tracer_tracing_is_on(struct trace_array *tr);
596 void tracer_tracing_on(struct trace_array *tr);
597 void tracer_tracing_off(struct trace_array *tr);
614 struct trace_entry *tracing_get_trace_entry(struct trace_array *tr,
636 unsigned long trace_total_entries_cpu(struct trace_array *tr, int cpu);
637 unsigned long trace_total_entries(struct trace_array *tr);
639 void trace_function(struct trace_array *tr,
643 void trace_graph_function(struct trace_array *tr,
653 void set_graph_array(struct trace_array *tr);
695 void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu,
697 void update_max_tr_single(struct trace_array *tr,
706 void latency_fsnotify(struct trace_array *tr);
708 static inline void latency_fsnotify(struct trace_array *tr) { } in latency_fsnotify() argument
712 void __trace_stack(struct trace_array *tr, unsigned int trace_ctx, int skip);
714 static inline void __trace_stack(struct trace_array *tr, unsigned int trace_ctx, in __trace_stack() argument
720 void trace_last_func_repeats(struct trace_array *tr,
728 extern void trace_event_follow_fork(struct trace_array *tr, bool enable);
734 void ftrace_init_trace_array(struct trace_array *tr);
736 static inline void ftrace_init_trace_array(struct trace_array *tr) { } in ftrace_init_trace_array() argument
750 struct trace_array *tr);
752 struct trace_array *tr);
754 struct trace_array *tr);
756 struct trace_array *tr);
758 struct trace_array *tr);
760 struct trace_array *tr);
762 struct trace_array *tr);
764 struct trace_array *tr);
786 trace_array_vprintk(struct trace_array *tr,
857 extern int __trace_graph_entry(struct trace_array *tr,
860 extern void __trace_graph_return(struct trace_array *tr,
987 int (*func)(struct trace_array *tr,
993 static inline int ftrace_trace_task(struct trace_array *tr) in ftrace_trace_task() argument
995 return this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid) != in ftrace_trace_task()
999 int ftrace_create_function_files(struct trace_array *tr,
1001 void ftrace_destroy_function_files(struct trace_array *tr);
1002 int ftrace_allocate_ftrace_ops(struct trace_array *tr);
1003 void ftrace_free_ftrace_ops(struct trace_array *tr);
1004 void ftrace_init_global_array_ops(struct trace_array *tr);
1005 void ftrace_init_array_ops(struct trace_array *tr, ftrace_func_t func);
1006 void ftrace_reset_array_ops(struct trace_array *tr);
1007 void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d_tracer);
1008 void ftrace_init_tracefs_toplevel(struct trace_array *tr,
1010 void ftrace_clear_pids(struct trace_array *tr);
1012 void ftrace_pid_follow_fork(struct trace_array *tr, bool enable);
1014 static inline int ftrace_trace_task(struct trace_array *tr) in ftrace_trace_task() argument
1020 ftrace_create_function_files(struct trace_array *tr, in ftrace_create_function_files() argument
1025 static inline int ftrace_allocate_ftrace_ops(struct trace_array *tr) in ftrace_allocate_ftrace_ops() argument
1029 static inline void ftrace_free_ftrace_ops(struct trace_array *tr) { } in ftrace_free_ftrace_ops() argument
1030 static inline void ftrace_destroy_function_files(struct trace_array *tr) { } in ftrace_destroy_function_files() argument
1032 ftrace_init_global_array_ops(struct trace_array *tr) { } in ftrace_init_global_array_ops() argument
1033 static inline void ftrace_reset_array_ops(struct trace_array *tr) { } in ftrace_reset_array_ops() argument
1034 static inline void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d) { } in ftrace_init_tracefs() argument
1035 static inline void ftrace_init_tracefs_toplevel(struct trace_array *tr, struct dentry *d) { } in ftrace_init_tracefs_toplevel() argument
1036 static inline void ftrace_clear_pids(struct trace_array *tr) { } in ftrace_clear_pids() argument
1038 static inline void ftrace_pid_follow_fork(struct trace_array *tr, bool enable) { } in ftrace_pid_follow_fork() argument
1040 #define ftrace_init_array_ops(tr, func) do { } while (0) argument
1048 struct trace_array *tr,
1052 struct trace_array *tr,
1056 struct trace_array *tr,
1078 register_ftrace_function_probe(char *glob, struct trace_array *tr,
1081 unregister_ftrace_function_probe_func(char *glob, struct trace_array *tr,
1083 extern void clear_ftrace_function_probes(struct trace_array *tr);
1107 static inline void clear_ftrace_function_probes(struct trace_array *tr) in clear_ftrace_function_probes() argument
1260 extern int enable_branch_tracing(struct trace_array *tr);
1262 static inline int trace_branch_enable(struct trace_array *tr) in trace_branch_enable() argument
1264 if (tr->trace_flags & TRACE_ITER_BRANCH) in trace_branch_enable()
1265 return enable_branch_tracing(tr); in trace_branch_enable()
1274 static inline int trace_branch_enable(struct trace_array *tr) in trace_branch_enable() argument
1314 struct trace_array *tr; member
1324 void trace_buffer_unlock_commit_regs(struct trace_array *tr,
1330 static inline void trace_buffer_unlock_commit(struct trace_array *tr, in trace_buffer_unlock_commit() argument
1335 trace_buffer_unlock_commit_regs(tr, buffer, event, trace_ctx, NULL); in trace_buffer_unlock_commit()
1425 trace_buffer_unlock_commit(file->tr, buffer, event, trace_ctx); in event_trigger_unlock_commit()
1490 extern int create_event_filter(struct trace_array *tr,
1504 extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr);
1505 extern int event_trace_del_tracer(struct trace_array *tr);
1506 extern void __trace_early_add_events(struct trace_array *tr);
1508 extern struct trace_event_file *__find_event_file(struct trace_array *tr,
1511 extern struct trace_event_file *find_event_file(struct trace_array *tr,
1537 extern void clear_event_triggers(struct trace_array *tr);
1838 extern void tracing_snapshot_cond(struct trace_array *tr, void *cond_data);
1839 extern int tracing_snapshot_cond_enable(struct trace_array *tr, void *cond_data, cond_update_fn_t u…
1841 extern int tracing_snapshot_cond_disable(struct trace_array *tr);
1842 extern void *tracing_cond_snapshot_data(struct trace_array *tr);
1853 int set_tracer_flag(struct trace_array *tr, unsigned int mask, int enabled);
1856 extern int trace_set_options(struct trace_array *tr, char *option);
1857 extern int tracing_set_tracer(struct trace_array *tr, const char *buf);
1858 extern ssize_t tracing_resize_ring_buffer(struct trace_array *tr,
1860 extern int tracing_set_cpumask(struct trace_array *tr,
1871 extern void tracing_log_err(struct trace_array *tr,
1921 extern int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
1929 void tracing_snapshot_instance(struct trace_array *tr);
1930 int tracing_alloc_snapshot_instance(struct trace_array *tr);
1932 static inline void tracing_snapshot_instance(struct trace_array *tr) { } in tracing_snapshot_instance() argument
1933 static inline int tracing_alloc_snapshot_instance(struct trace_array *tr) in tracing_alloc_snapshot_instance() argument