Lines Matching refs:ops
38 struct ftrace_ops *ops; in allocate_ftrace_ops() local
40 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in allocate_ftrace_ops()
41 if (!ops) in allocate_ftrace_ops()
45 ops->func = function_trace_call; in allocate_ftrace_ops()
46 ops->flags = FTRACE_OPS_FL_RECURSION_SAFE; in allocate_ftrace_ops()
48 tr->ops = ops; in allocate_ftrace_ops()
49 ops->private = tr; in allocate_ftrace_ops()
70 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files()
77 ftrace_destroy_filter_files(tr->ops); in ftrace_destroy_function_files()
78 kfree(tr->ops); in ftrace_destroy_function_files()
79 tr->ops = NULL; in ftrace_destroy_function_files()
91 if (!tr->ops) in function_trace_init()
212 register_ftrace_function(tr->ops); in tracing_start_function_trace()
219 unregister_ftrace_function(tr->ops); in tracing_stop_function_trace()
231 unregister_ftrace_function(tr->ops); in func_set_flag()
234 tr->ops->func = function_stack_trace_call; in func_set_flag()
235 register_ftrace_function(tr->ops); in func_set_flag()
237 tr->ops->func = function_trace_call; in func_set_flag()
238 register_ftrace_function(tr->ops); in func_set_flag()
448 struct ftrace_probe_ops *ops, void *data) in ftrace_traceon_print() argument
455 struct ftrace_probe_ops *ops, void *data) in ftrace_traceoff_print() argument
462 struct ftrace_probe_ops *ops, void *data) in ftrace_stacktrace_print() argument
469 struct ftrace_probe_ops *ops, void *data) in ftrace_dump_print() argument
476 struct ftrace_probe_ops *ops, void *data) in ftrace_cpudump_print() argument
522 ftrace_trace_probe_callback(struct ftrace_probe_ops *ops, in ftrace_trace_probe_callback() argument
535 unregister_ftrace_function_probe_func(glob+1, ops); in ftrace_trace_probe_callback()
556 ret = register_ftrace_function_probe(glob, ops, count); in ftrace_trace_probe_callback()
565 struct ftrace_probe_ops *ops; in ftrace_trace_onoff_callback() local
569 ops = param ? &traceon_count_probe_ops : &traceon_probe_ops; in ftrace_trace_onoff_callback()
571 ops = param ? &traceoff_count_probe_ops : &traceoff_probe_ops; in ftrace_trace_onoff_callback()
573 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_trace_onoff_callback()
581 struct ftrace_probe_ops *ops; in ftrace_stacktrace_callback() local
583 ops = param ? &stacktrace_count_probe_ops : &stacktrace_probe_ops; in ftrace_stacktrace_callback()
585 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_stacktrace_callback()
593 struct ftrace_probe_ops *ops; in ftrace_dump_callback() local
595 ops = &dump_probe_ops; in ftrace_dump_callback()
598 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_dump_callback()
606 struct ftrace_probe_ops *ops; in ftrace_cpudump_callback() local
608 ops = &cpudump_probe_ops; in ftrace_cpudump_callback()
611 return ftrace_trace_probe_callback(ops, hash, glob, cmd, in ftrace_cpudump_callback()