Lines Matching refs:tr

114 print_graph_duration(struct trace_array *tr, unsigned long long duration,
117 static int __graph_entry(struct trace_array *tr, struct ftrace_graph_ent *trace, in __graph_entry() argument
121 struct trace_buffer *buffer = tr->array_buffer.buffer; in __graph_entry()
147 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument
151 return __graph_entry(tr, trace, trace_ctx, NULL); in __trace_graph_entry()
155 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() argument
161 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_retaddr_entry()
177 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() argument
204 struct trace_array *tr = gops->private; in graph_entry() local
228 if (!ftrace_trace_task(tr)) in graph_entry()
261 ret = __trace_graph_retaddr_entry(tr, trace, trace_ctx, retaddr); in graph_entry()
263 ret = __graph_entry(tr, trace, trace_ctx, fregs); in graph_entry()
284 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() argument
297 __trace_graph_entry(tr, &ent, trace_ctx); in __trace_graph_function()
298 __trace_graph_return(tr, &ret, trace_ctx, time, time); in __trace_graph_function()
302 trace_graph_function(struct trace_array *tr, in trace_graph_function() argument
306 __trace_graph_function(tr, ip, trace_ctx); in trace_graph_function()
309 void __trace_graph_return(struct trace_array *tr, in __trace_graph_return() argument
315 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return()
343 struct trace_array *tr = gops->private; in trace_graph_return() local
367 __trace_graph_return(tr, trace, trace_ctx, calltime, rettime); in trace_graph_return()
402 int allocate_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops) in allocate_fgraph_ops() argument
413 tr->gops = gops; in allocate_fgraph_ops()
414 gops->private = tr; in allocate_fgraph_ops()
421 void free_fgraph_ops(struct trace_array *tr) in free_fgraph_ops() argument
423 kfree(tr->gops); in free_fgraph_ops()
426 __init void init_array_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops) in init_array_fgraph_ops() argument
428 tr->gops = &funcgraph_ops; in init_array_fgraph_ops()
429 funcgraph_ops.private = tr; in init_array_fgraph_ops()
430 fgraph_init_ops(&tr->gops->ops, ops); in init_array_fgraph_ops()
433 static int graph_trace_init(struct trace_array *tr) in graph_trace_init() argument
438 tr->gops->entryfunc = trace_graph_entry_args; in graph_trace_init()
440 tr->gops->entryfunc = trace_graph_entry; in graph_trace_init()
443 tr->gops->retfunc = trace_graph_thresh_return; in graph_trace_init()
445 tr->gops->retfunc = trace_graph_return; in graph_trace_init()
450 ret = register_ftrace_graph(tr->gops); in graph_trace_init()
460 static int ftrace_graph_trace_args(struct trace_array *tr, int set) in ftrace_graph_trace_args() argument
465 if (tr->current_trace != &graph_trace) in ftrace_graph_trace_args()
474 if (tr->gops->entryfunc == entry) in ftrace_graph_trace_args()
477 unregister_ftrace_graph(tr->gops); in ftrace_graph_trace_args()
479 tr->gops->entryfunc = entry; in ftrace_graph_trace_args()
483 return register_ftrace_graph(tr->gops); in ftrace_graph_trace_args()
486 static void graph_trace_reset(struct trace_array *tr) in graph_trace_reset() argument
489 unregister_ftrace_graph(tr->gops); in graph_trace_reset()
492 static int graph_trace_update_thresh(struct trace_array *tr) in graph_trace_update_thresh() argument
494 graph_trace_reset(tr); in graph_trace_update_thresh()
495 return graph_trace_init(tr); in graph_trace_update_thresh()
686 struct trace_array *tr = iter->tr; in print_graph_irq() local
690 addr += iter->tr->text_delta; in print_graph_irq()
696 if (tr->trace_flags & TRACE_ITER_CONTEXT_INFO) { in print_graph_irq()
716 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) in print_graph_irq()
721 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_START); in print_graph_irq()
728 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_END); in print_graph_irq()
766 print_graph_duration(struct trace_array *tr, unsigned long long duration, in print_graph_duration() argument
770 !(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_duration()
904 struct trace_array *tr = iter->tr; in print_graph_entry_leaf() local
938 print_graph_duration(tr, duration, s, flags); in print_graph_entry_leaf()
944 ret_func = graph_ret->func + iter->tr->text_delta; in print_graph_entry_leaf()
951 (void *)graph_ret->func + iter->tr->text_delta, in print_graph_entry_leaf()
952 flags, tr->trace_flags, args_size); in print_graph_entry_leaf()
977 struct trace_array *tr = iter->tr; in print_graph_entry_nested() local
996 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_FULL); in print_graph_entry_nested()
1002 func = call->func + iter->tr->text_delta; in print_graph_entry_nested()
1018 tr->trace_flags, true); in print_graph_entry_nested()
1037 struct trace_array *tr = iter->tr; in print_graph_prologue() local
1047 if (!(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_prologue()
1069 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) in print_graph_prologue()
1094 addr += iter->tr->text_delta; in check_irq_entry()
1242 struct trace_array *tr = iter->tr; in print_graph_return() local
1249 func = trace->func + iter->tr->text_delta; in print_graph_return()
1278 print_graph_duration(tr, duration, s, flags); in print_graph_return()
1290 tr->trace_flags, 0); in print_graph_return()
1321 struct trace_array *tr = iter->tr; in print_graph_comment() local
1322 unsigned long sym_flags = (tr->trace_flags & TRACE_ITER_SYM_MASK); in print_graph_comment()
1335 print_graph_duration(tr, 0, s, flags | FLAGS_FILL_FULL); in print_graph_comment()
1485 static void __print_graph_headers_flags(struct trace_array *tr, in __print_graph_headers_flags() argument
1488 int lat = tr->trace_flags & TRACE_ITER_LATENCY_FMT; in __print_graph_headers_flags()
1534 struct trace_array *tr = iter->tr; in print_graph_headers_flags() local
1536 if (!(tr->trace_flags & TRACE_ITER_CONTEXT_INFO)) in print_graph_headers_flags()
1539 if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) { in print_graph_headers_flags()
1547 __print_graph_headers_flags(tr, s, flags); in print_graph_headers_flags()
1604 func_graph_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in func_graph_set_flag() argument
1616 return ftrace_graph_trace_args(tr, set); in func_graph_set_flag()