Lines Matching refs:ops
39 struct ftrace_ops *ops; in allocate_ftrace_ops() local
41 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in allocate_ftrace_ops()
42 if (!ops) in allocate_ftrace_ops()
46 ops->func = function_trace_call; in allocate_ftrace_ops()
47 ops->flags = FTRACE_OPS_FL_RECURSION_SAFE | FTRACE_OPS_FL_PID; in allocate_ftrace_ops()
49 tr->ops = ops; in allocate_ftrace_ops()
50 ops->private = tr; in allocate_ftrace_ops()
71 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files()
78 ftrace_destroy_filter_files(tr->ops); in ftrace_destroy_function_files()
79 kfree(tr->ops); in ftrace_destroy_function_files()
80 tr->ops = NULL; in ftrace_destroy_function_files()
92 if (!tr->ops) in function_trace_init()
223 register_ftrace_function(tr->ops); in tracing_start_function_trace()
230 unregister_ftrace_function(tr->ops); in tracing_stop_function_trace()
248 unregister_ftrace_function(tr->ops); in func_set_flag()
251 tr->ops->func = function_stack_trace_call; in func_set_flag()
252 register_ftrace_function(tr->ops); in func_set_flag()
254 tr->ops->func = function_trace_call; in func_set_flag()
255 register_ftrace_function(tr->ops); in func_set_flag()
281 static void update_traceon_count(struct ftrace_probe_ops *ops, in update_traceon_count() argument
344 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceon_count() argument
347 update_traceon_count(ops, ip, tr, 1, data); in ftrace_traceon_count()
352 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceoff_count() argument
355 update_traceon_count(ops, ip, tr, 0, data); in ftrace_traceoff_count()
360 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceon() argument
371 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceoff() argument
415 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_stacktrace() argument
423 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_stacktrace_count() argument
463 static int update_count(struct ftrace_probe_ops *ops, unsigned long ip, in update_count() argument
483 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_dump_probe() argument
486 if (update_count(ops, ip, data)) in ftrace_dump_probe()
493 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_cpudump_probe() argument
496 if (update_count(ops, ip, data)) in ftrace_cpudump_probe()
502 unsigned long ip, struct ftrace_probe_ops *ops, in ftrace_probe_print() argument
523 struct ftrace_probe_ops *ops, in ftrace_traceon_print() argument
526 return ftrace_probe_print("traceon", m, ip, ops, data); in ftrace_traceon_print()
531 struct ftrace_probe_ops *ops, void *data) in ftrace_traceoff_print() argument
533 return ftrace_probe_print("traceoff", m, ip, ops, data); in ftrace_traceoff_print()
538 struct ftrace_probe_ops *ops, void *data) in ftrace_stacktrace_print() argument
540 return ftrace_probe_print("stacktrace", m, ip, ops, data); in ftrace_stacktrace_print()
545 struct ftrace_probe_ops *ops, void *data) in ftrace_dump_print() argument
547 return ftrace_probe_print("dump", m, ip, ops, data); in ftrace_dump_print()
552 struct ftrace_probe_ops *ops, void *data) in ftrace_cpudump_print() argument
554 return ftrace_probe_print("cpudump", m, ip, ops, data); in ftrace_cpudump_print()
559 ftrace_count_init(struct ftrace_probe_ops *ops, struct trace_array *tr, in ftrace_count_init() argument
575 ftrace_count_free(struct ftrace_probe_ops *ops, struct trace_array *tr, in ftrace_count_free() argument
638 struct ftrace_probe_ops *ops, in ftrace_trace_probe_callback() argument
651 return unregister_ftrace_function_probe_func(glob+1, tr, ops); in ftrace_trace_probe_callback()
670 ret = register_ftrace_function_probe(glob, tr, ops, count); in ftrace_trace_probe_callback()
679 struct ftrace_probe_ops *ops; in ftrace_trace_onoff_callback() local
686 ops = param ? &traceon_count_probe_ops : &traceon_probe_ops; in ftrace_trace_onoff_callback()
688 ops = param ? &traceoff_count_probe_ops : &traceoff_probe_ops; in ftrace_trace_onoff_callback()
690 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_trace_onoff_callback()
698 struct ftrace_probe_ops *ops; in ftrace_stacktrace_callback() local
703 ops = param ? &stacktrace_count_probe_ops : &stacktrace_probe_ops; in ftrace_stacktrace_callback()
705 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_stacktrace_callback()
713 struct ftrace_probe_ops *ops; in ftrace_dump_callback() local
718 ops = &dump_probe_ops; in ftrace_dump_callback()
721 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_dump_callback()
729 struct ftrace_probe_ops *ops; in ftrace_cpudump_callback() local
734 ops = &cpudump_probe_ops; in ftrace_cpudump_callback()
737 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_cpudump_callback()