• Home
  • Raw
  • Download

Lines Matching refs:ops

54 	struct ftrace_ops *ops;  in ftrace_allocate_ftrace_ops()  local
60 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in ftrace_allocate_ftrace_ops()
61 if (!ops) in ftrace_allocate_ftrace_ops()
65 ops->func = function_trace_call; in ftrace_allocate_ftrace_ops()
66 ops->flags = FTRACE_OPS_FL_PID; in ftrace_allocate_ftrace_ops()
68 tr->ops = ops; in ftrace_allocate_ftrace_ops()
69 ops->private = tr; in ftrace_allocate_ftrace_ops()
76 kfree(tr->ops); in ftrace_free_ftrace_ops()
77 tr->ops = NULL; in ftrace_free_ftrace_ops()
90 if (!tr->ops) in ftrace_create_function_files()
93 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files()
100 ftrace_destroy_filter_files(tr->ops); in ftrace_destroy_function_files()
140 if (!tr->ops) in function_trace_init()
383 register_ftrace_function(tr->ops); in tracing_start_function_trace()
390 unregister_ftrace_function(tr->ops); in tracing_stop_function_trace()
415 if (tr->ops->func == func) in func_set_flag()
421 unregister_ftrace_function(tr->ops); in func_set_flag()
422 tr->ops->func = func; in func_set_flag()
423 register_ftrace_function(tr->ops); in func_set_flag()
443 static void update_traceon_count(struct ftrace_probe_ops *ops, in update_traceon_count() argument
506 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceon_count() argument
509 update_traceon_count(ops, ip, tr, 1, data); in ftrace_traceon_count()
514 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceoff_count() argument
517 update_traceon_count(ops, ip, tr, 0, data); in ftrace_traceoff_count()
522 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceon() argument
533 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_traceoff() argument
575 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_stacktrace() argument
583 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_stacktrace_count() argument
623 static int update_count(struct ftrace_probe_ops *ops, unsigned long ip, in update_count() argument
643 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_dump_probe() argument
646 if (update_count(ops, ip, data)) in ftrace_dump_probe()
653 struct trace_array *tr, struct ftrace_probe_ops *ops, in ftrace_cpudump_probe() argument
656 if (update_count(ops, ip, data)) in ftrace_cpudump_probe()
662 unsigned long ip, struct ftrace_probe_ops *ops, in ftrace_probe_print() argument
683 struct ftrace_probe_ops *ops, in ftrace_traceon_print() argument
686 return ftrace_probe_print("traceon", m, ip, ops, data); in ftrace_traceon_print()
691 struct ftrace_probe_ops *ops, void *data) in ftrace_traceoff_print() argument
693 return ftrace_probe_print("traceoff", m, ip, ops, data); in ftrace_traceoff_print()
698 struct ftrace_probe_ops *ops, void *data) in ftrace_stacktrace_print() argument
700 return ftrace_probe_print("stacktrace", m, ip, ops, data); in ftrace_stacktrace_print()
705 struct ftrace_probe_ops *ops, void *data) in ftrace_dump_print() argument
707 return ftrace_probe_print("dump", m, ip, ops, data); in ftrace_dump_print()
712 struct ftrace_probe_ops *ops, void *data) in ftrace_cpudump_print() argument
714 return ftrace_probe_print("cpudump", m, ip, ops, data); in ftrace_cpudump_print()
719 ftrace_count_init(struct ftrace_probe_ops *ops, struct trace_array *tr, in ftrace_count_init() argument
735 ftrace_count_free(struct ftrace_probe_ops *ops, struct trace_array *tr, in ftrace_count_free() argument
798 struct ftrace_probe_ops *ops, in ftrace_trace_probe_callback() argument
811 return unregister_ftrace_function_probe_func(glob+1, tr, ops); in ftrace_trace_probe_callback()
830 ret = register_ftrace_function_probe(glob, tr, ops, count); in ftrace_trace_probe_callback()
839 struct ftrace_probe_ops *ops; in ftrace_trace_onoff_callback() local
846 ops = param ? &traceon_count_probe_ops : &traceon_probe_ops; in ftrace_trace_onoff_callback()
848 ops = param ? &traceoff_count_probe_ops : &traceoff_probe_ops; in ftrace_trace_onoff_callback()
850 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_trace_onoff_callback()
858 struct ftrace_probe_ops *ops; in ftrace_stacktrace_callback() local
863 ops = param ? &stacktrace_count_probe_ops : &stacktrace_probe_ops; in ftrace_stacktrace_callback()
865 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_stacktrace_callback()
873 struct ftrace_probe_ops *ops; in ftrace_dump_callback() local
878 ops = &dump_probe_ops; in ftrace_dump_callback()
881 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_dump_callback()
889 struct ftrace_probe_ops *ops; in ftrace_cpudump_callback() local
894 ops = &cpudump_probe_ops; in ftrace_cpudump_callback()
897 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_cpudump_callback()