Lines Matching refs:tr

94 print_graph_duration(struct trace_array *tr, unsigned long long duration,
97 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument
104 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry()
129 struct trace_array *tr = graph_array; in trace_graph_entry() local
156 if (!ftrace_trace_task(tr)) in trace_graph_entry()
174 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_entry()
178 ret = __trace_graph_entry(tr, trace, flags, pc); in trace_graph_entry()
190 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() argument
205 __trace_graph_entry(tr, &ent, flags, pc); in __trace_graph_function()
206 __trace_graph_return(tr, &ret, flags, pc); in __trace_graph_function()
210 trace_graph_function(struct trace_array *tr, in trace_graph_function() argument
214 __trace_graph_function(tr, ip, flags, pc); in trace_graph_function()
217 void __trace_graph_return(struct trace_array *tr, in __trace_graph_return() argument
224 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return()
239 struct trace_array *tr = graph_array; in trace_graph_return() local
255 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_return()
259 __trace_graph_return(tr, trace, flags, pc); in trace_graph_return()
265 void set_graph_array(struct trace_array *tr) in set_graph_array() argument
267 graph_array = tr; in set_graph_array()
300 static int graph_trace_init(struct trace_array *tr) in graph_trace_init() argument
304 set_graph_array(tr); in graph_trace_init()
316 static void graph_trace_reset(struct trace_array *tr) in graph_trace_reset() argument
325 static int graph_trace_update_thresh(struct trace_array *tr) in graph_trace_update_thresh() argument
327 graph_trace_reset(tr); in graph_trace_update_thresh()
328 return graph_trace_init(tr); in graph_trace_update_thresh()
516 struct trace_array *tr = iter->tr; in print_graph_irq() local
524 if (tr->trace_flags & TRACE_ITER_CONTEXT_INFO) { in print_graph_irq()
544 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) in print_graph_irq()
549 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_START); in print_graph_irq()
556 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_END); in print_graph_irq()
594 print_graph_duration(struct trace_array *tr, unsigned long long duration, in print_graph_duration() argument
598 !(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_duration()
632 struct trace_array *tr = iter->tr; in print_graph_entry_leaf() local
662 print_graph_duration(tr, duration, s, flags); in print_graph_entry_leaf()
683 struct trace_array *tr = iter->tr; in print_graph_entry_nested() local
700 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_FULL); in print_graph_entry_nested()
724 struct trace_array *tr = iter->tr; in print_graph_prologue() local
734 if (!(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_prologue()
756 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) in print_graph_prologue()
907 struct trace_array *tr = iter->tr; in print_graph_return() local
940 print_graph_duration(tr, duration, s, flags); in print_graph_return()
973 struct trace_array *tr = iter->tr; in print_graph_comment() local
974 unsigned long sym_flags = (tr->trace_flags & TRACE_ITER_SYM_MASK); in print_graph_comment()
987 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_FULL); in print_graph_comment()
1135 static void __print_graph_headers_flags(struct trace_array *tr, in __print_graph_headers_flags() argument
1138 int lat = tr->trace_flags & TRACE_ITER_LATENCY_FMT; in __print_graph_headers_flags()
1184 struct trace_array *tr = iter->tr; in print_graph_headers_flags() local
1186 if (!(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_headers_flags()
1189 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) { in print_graph_headers_flags()
1197 __print_graph_headers_flags(tr, s, flags); in print_graph_headers_flags()
1253 func_graph_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in func_graph_set_flag() argument