Lines Matching refs:gops

178 		      struct fgraph_ops *gops,  in trace_graph_entry()  argument
181 unsigned long *task_var = fgraph_get_task_var(gops); in trace_graph_entry()
182 struct trace_array *tr = gops->private; in trace_graph_entry()
212 if (ftrace_graph_ignore_func(gops, trace)) in trace_graph_entry()
220 ftimes = fgraph_reserve_data(gops->idx, sizeof(ftimes->calltime)); in trace_graph_entry()
222 ftimes = fgraph_reserve_data(gops->idx, sizeof(*ftimes)); in trace_graph_entry()
314 struct fgraph_ops *gops, struct ftrace_regs *fregs) in trace_graph_return() argument
316 unsigned long *task_var = fgraph_get_task_var(gops); in trace_graph_return()
317 struct trace_array *tr = gops->private; in trace_graph_return()
328 ftrace_graph_addr_finish(gops, trace); in trace_graph_return()
335 ftimes = fgraph_retrieve_data(gops->idx, &size); in trace_graph_return()
355 struct fgraph_ops *gops, in trace_graph_thresh_return() argument
361 ftrace_graph_addr_finish(gops, trace); in trace_graph_thresh_return()
368 ftimes = fgraph_retrieve_data(gops->idx, &size); in trace_graph_thresh_return()
378 trace_graph_return(trace, gops, fregs); in trace_graph_thresh_return()
388 struct fgraph_ops *gops; in allocate_fgraph_ops() local
390 gops = kzalloc(sizeof(*gops), GFP_KERNEL); in allocate_fgraph_ops()
391 if (!gops) in allocate_fgraph_ops()
394 gops->entryfunc = &trace_graph_entry; in allocate_fgraph_ops()
395 gops->retfunc = &trace_graph_return; in allocate_fgraph_ops()
397 tr->gops = gops; in allocate_fgraph_ops()
398 gops->private = tr; in allocate_fgraph_ops()
400 fgraph_init_ops(&gops->ops, ops); in allocate_fgraph_ops()
407 kfree(tr->gops); in free_fgraph_ops()
412 tr->gops = &funcgraph_ops; in init_array_fgraph_ops()
414 fgraph_init_ops(&tr->gops->ops, ops); in init_array_fgraph_ops()
421 tr->gops->entryfunc = trace_graph_entry; in graph_trace_init()
424 tr->gops->retfunc = trace_graph_thresh_return; in graph_trace_init()
426 tr->gops->retfunc = trace_graph_return; in graph_trace_init()
431 ret = register_ftrace_graph(tr->gops); in graph_trace_init()
442 unregister_ftrace_graph(tr->gops); in graph_trace_reset()