Lines Matching refs:ops
58 struct ftrace_ops *ops; in ftrace_allocate_ftrace_ops() local
64 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in ftrace_allocate_ftrace_ops()
65 if (!ops) in ftrace_allocate_ftrace_ops()
69 ops->func = function_trace_call; in ftrace_allocate_ftrace_ops()
70 ops->flags = FTRACE_OPS_FL_PID; in ftrace_allocate_ftrace_ops()
72 tr->ops = ops; in ftrace_allocate_ftrace_ops()
73 ops->private = tr; in ftrace_allocate_ftrace_ops()
80 kfree(tr->ops); in ftrace_free_ftrace_ops()
81 tr->ops = NULL; in ftrace_free_ftrace_ops()
95 if (!tr->ops) in ftrace_create_function_files()
98 ret = allocate_fgraph_ops(tr, tr->ops); in ftrace_create_function_files()
100 kfree(tr->ops); in ftrace_create_function_files()
104 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files()
111 ftrace_destroy_filter_files(tr->ops); in ftrace_destroy_function_files()
154 if (!tr->ops) in function_trace_init()
443 register_ftrace_function(tr->ops); in tracing_start_function_trace()
450 unregister_ftrace_function(tr->ops); in tracing_stop_function_trace()
475 if (tr->ops->func == func) in func_set_flag()
481 unregister_ftrace_function(tr->ops); in func_set_flag()
482 tr->ops->func = func; in func_set_flag()
483 register_ftrace_function(tr->ops); in func_set_flag()
503 static void update_traceon_count(struct ftrace_probe_ops *ops, in update_traceon_count() argument
566 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceon_count() argument
569 update_traceon_count(ops, ip, tr, 1, data); in ftrace_traceon_count()
574 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceoff_count() argument
577 update_traceon_count(ops, ip, tr, 0, data); in ftrace_traceoff_count()
582 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceon() argument
593 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceoff() argument
631 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_stacktrace() argument
639 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_stacktrace_count() argument
679 static int update_count(struct ftrace_probe_ops *ops, unsigned long ip, in update_count() argument
699 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_dump_probe() argument
702 if (update_count(ops, ip, data)) in ftrace_dump_probe()
709 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_cpudump_probe() argument
712 if (update_count(ops, ip, data)) in ftrace_cpudump_probe()
718 unsigned long ip, struct ftrace_probe_ops *ops, in ftrace_probe_print() argument
739 struct ftrace_probe_ops *ops, in ftrace_traceon_print() argument
742 return ftrace_probe_print("traceon", m, ip, ops, data); in ftrace_traceon_print()
747 struct ftrace_probe_ops *ops, void *data) in ftrace_traceoff_print() argument
749 return ftrace_probe_print("traceoff", m, ip, ops, data); in ftrace_traceoff_print()
754 struct ftrace_probe_ops *ops, void *data) in ftrace_stacktrace_print() argument
756 return ftrace_probe_print("stacktrace", m, ip, ops, data); in ftrace_stacktrace_print()
761 struct ftrace_probe_ops *ops, void *data) in ftrace_dump_print() argument
763 return ftrace_probe_print("dump", m, ip, ops, data); in ftrace_dump_print()
768 struct ftrace_probe_ops *ops, void *data) in ftrace_cpudump_print() argument
770 return ftrace_probe_print("cpudump", m, ip, ops, data); in ftrace_cpudump_print()
775 ftrace_count_init(struct ftrace_probe_ops *ops, struct trace_array *tr, in ftrace_count_init() argument
791 ftrace_count_free(struct ftrace_probe_ops *ops, struct trace_array *tr, in ftrace_count_free() argument
854 struct ftrace_probe_ops *ops, in ftrace_trace_probe_callback() argument
867 return unregister_ftrace_function_probe_func(glob+1, tr, ops); in ftrace_trace_probe_callback()
886 ret = register_ftrace_function_probe(glob, tr, ops, count); in ftrace_trace_probe_callback()
895 struct ftrace_probe_ops *ops; in ftrace_trace_onoff_callback() local
902 ops = param ? &traceon_count_probe_ops : &traceon_probe_ops; in ftrace_trace_onoff_callback()
904 ops = param ? &traceoff_count_probe_ops : &traceoff_probe_ops; in ftrace_trace_onoff_callback()
906 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_trace_onoff_callback()
914 struct ftrace_probe_ops *ops; in ftrace_stacktrace_callback() local
919 ops = param ? &stacktrace_count_probe_ops : &stacktrace_probe_ops; in ftrace_stacktrace_callback()
921 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_stacktrace_callback()
929 struct ftrace_probe_ops *ops; in ftrace_dump_callback() local
934 ops = &dump_probe_ops; in ftrace_dump_callback()
937 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_dump_callback()
945 struct ftrace_probe_ops *ops; in ftrace_cpudump_callback() local
950 ops = &cpudump_probe_ops; in ftrace_cpudump_callback()
953 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_cpudump_callback()