diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-31 19:01:14 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-18 13:49:59 -0400 |
commit | ec19b85913486993d7d6f747beed1a711afd47d8 (patch) | |
tree | 5dd723c7fb221fc0262c78a19a6ddb462436acb8 /include/linux/ftrace.h | |
parent | a9064f676ed6de7bf3a07e26fc19494d48fa4619 (diff) |
ftrace: Move the probe function into the tracing directory
As nothing outside the tracing directory uses the function probes mechanism,
I'm moving the prototypes out of the include/linux/ftrace.h and into the
local kernel/trace/trace.h header. I plan on making them hook to the
trace_array structure which is local to kernel/trace, and I do not want to
expose it to the rest of the kernel. This requires that the probe functions
must also be local to tracing. But luckily nothing else uses them.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 06b2990a35e4..3e790ff1c501 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -360,30 +360,6 @@ void ftrace_bug(int err, struct dyn_ftrace *rec); | |||
360 | 360 | ||
361 | struct seq_file; | 361 | struct seq_file; |
362 | 362 | ||
363 | struct ftrace_probe_ops { | ||
364 | void (*func)(unsigned long ip, | ||
365 | unsigned long parent_ip, | ||
366 | void **data); | ||
367 | int (*init)(struct ftrace_probe_ops *ops, | ||
368 | unsigned long ip, void **data); | ||
369 | void (*free)(struct ftrace_probe_ops *ops, | ||
370 | unsigned long ip, void **data); | ||
371 | int (*print)(struct seq_file *m, | ||
372 | unsigned long ip, | ||
373 | struct ftrace_probe_ops *ops, | ||
374 | void *data); | ||
375 | }; | ||
376 | |||
377 | extern int | ||
378 | register_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops, | ||
379 | void *data); | ||
380 | extern void | ||
381 | unregister_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops, | ||
382 | void *data); | ||
383 | extern void | ||
384 | unregister_ftrace_function_probe_func(char *glob, struct ftrace_probe_ops *ops); | ||
385 | extern void unregister_ftrace_function_probe_all(char *glob); | ||
386 | |||
387 | extern int ftrace_text_reserved(const void *start, const void *end); | 363 | extern int ftrace_text_reserved(const void *start, const void *end); |
388 | 364 | ||
389 | extern int ftrace_nr_registered_ops(void); | 365 | extern int ftrace_nr_registered_ops(void); |