Lines Matching refs:tr
98 print_graph_duration(struct trace_array *tr, unsigned long long duration,
101 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument
107 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry()
134 struct trace_array *tr = gops->private; in trace_graph_entry() local
161 if (!ftrace_trace_task(tr)) in trace_graph_entry()
179 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_entry()
183 ret = __trace_graph_entry(tr, trace, trace_ctx); in trace_graph_entry()
195 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() argument
210 __trace_graph_entry(tr, &ent, trace_ctx); in __trace_graph_function()
211 __trace_graph_return(tr, &ret, trace_ctx); in __trace_graph_function()
215 trace_graph_function(struct trace_array *tr, in trace_graph_function() argument
219 __trace_graph_function(tr, ip, trace_ctx); in trace_graph_function()
222 void __trace_graph_return(struct trace_array *tr, in __trace_graph_return() argument
228 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return()
245 struct trace_array *tr = gops->private; in trace_graph_return() local
261 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_return()
265 __trace_graph_return(tr, trace, trace_ctx); in trace_graph_return()
293 int allocate_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops) in allocate_fgraph_ops() argument
304 tr->gops = gops; in allocate_fgraph_ops()
305 gops->private = tr; in allocate_fgraph_ops()
312 void free_fgraph_ops(struct trace_array *tr) in free_fgraph_ops() argument
314 kfree(tr->gops); in free_fgraph_ops()
317 __init void init_array_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops) in init_array_fgraph_ops() argument
319 tr->gops = &funcgraph_ops; in init_array_fgraph_ops()
320 funcgraph_ops.private = tr; in init_array_fgraph_ops()
321 fgraph_init_ops(&tr->gops->ops, ops); in init_array_fgraph_ops()
324 static int graph_trace_init(struct trace_array *tr) in graph_trace_init() argument
328 tr->gops->entryfunc = trace_graph_entry; in graph_trace_init()
331 tr->gops->retfunc = trace_graph_thresh_return; in graph_trace_init()
333 tr->gops->retfunc = trace_graph_return; in graph_trace_init()
338 ret = register_ftrace_graph(tr->gops); in graph_trace_init()
346 static void graph_trace_reset(struct trace_array *tr) in graph_trace_reset() argument
349 unregister_ftrace_graph(tr->gops); in graph_trace_reset()
352 static int graph_trace_update_thresh(struct trace_array *tr) in graph_trace_update_thresh() argument
354 graph_trace_reset(tr); in graph_trace_update_thresh()
355 return graph_trace_init(tr); in graph_trace_update_thresh()
543 struct trace_array *tr = iter->tr; in print_graph_irq() local
547 addr += iter->tr->text_delta; in print_graph_irq()
553 if (tr->trace_flags & TRACE_ITER_CONTEXT_INFO) { in print_graph_irq()
573 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) in print_graph_irq()
578 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_START); in print_graph_irq()
585 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_END); in print_graph_irq()
623 print_graph_duration(struct trace_array *tr, unsigned long long duration, in print_graph_duration() argument
627 !(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_duration()
711 struct trace_array *tr = iter->tr; in print_graph_entry_leaf() local
723 func = call->func + iter->tr->text_delta; in print_graph_entry_leaf()
744 print_graph_duration(tr, duration, s, flags); in print_graph_entry_leaf()
773 struct trace_array *tr = iter->tr; in print_graph_entry_nested() local
791 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_FULL); in print_graph_entry_nested()
797 func = call->func + iter->tr->text_delta; in print_graph_entry_nested()
817 struct trace_array *tr = iter->tr; in print_graph_prologue() local
827 if (!(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_prologue()
849 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) in print_graph_prologue()
874 addr += iter->tr->text_delta; in check_irq_entry()
1002 struct trace_array *tr = iter->tr; in print_graph_return() local
1009 func = trace->func + iter->tr->text_delta; in print_graph_return()
1038 print_graph_duration(tr, duration, s, flags); in print_graph_return()
1080 struct trace_array *tr = iter->tr; in print_graph_comment() local
1081 unsigned long sym_flags = (tr->trace_flags & TRACE_ITER_SYM_MASK); in print_graph_comment()
1094 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_FULL); in print_graph_comment()
1242 static void __print_graph_headers_flags(struct trace_array *tr, in __print_graph_headers_flags() argument
1245 int lat = tr->trace_flags & TRACE_ITER_LATENCY_FMT; in __print_graph_headers_flags()
1291 struct trace_array *tr = iter->tr; in print_graph_headers_flags() local
1293 if (!(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_headers_flags()
1296 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) { in print_graph_headers_flags()
1304 __print_graph_headers_flags(tr, s, flags); in print_graph_headers_flags()
1360 func_graph_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in func_graph_set_flag() argument