diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2012-06-05 06:28:08 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-07-31 10:29:55 -0400 |
commit | 647664eaf4033501739ac1f42dd52ce8c9266ccc (patch) | |
tree | 64497e4aedb7ec643cf5026d6cc5e1b9de77dcb2 /include/linux/ftrace.h | |
parent | ad97772ad82f57c83968079d0880c71ab126ab04 (diff) |
ftrace: add ftrace_set_filter_ip() for address based filter
Add a new filter update interface ftrace_set_filter_ip()
to set ftrace filter by ip address, not only glob pattern.
Link: http://lkml.kernel.org/r/20120605102808.27845.67952.stgit@localhost.localdomain
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: "Frank Ch. Eigler" <fche@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 9962e954a633..3e711122f66c 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -317,6 +317,8 @@ struct dyn_ftrace { | |||
317 | }; | 317 | }; |
318 | 318 | ||
319 | int ftrace_force_update(void); | 319 | int ftrace_force_update(void); |
320 | int ftrace_set_filter_ip(struct ftrace_ops *ops, unsigned long ip, | ||
321 | int remove, int reset); | ||
320 | int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf, | 322 | int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf, |
321 | int len, int reset); | 323 | int len, int reset); |
322 | int ftrace_set_notrace(struct ftrace_ops *ops, unsigned char *buf, | 324 | int ftrace_set_notrace(struct ftrace_ops *ops, unsigned char *buf, |
@@ -544,6 +546,7 @@ static inline int ftrace_text_reserved(void *start, void *end) | |||
544 | */ | 546 | */ |
545 | #define ftrace_regex_open(ops, flag, inod, file) ({ -ENODEV; }) | 547 | #define ftrace_regex_open(ops, flag, inod, file) ({ -ENODEV; }) |
546 | #define ftrace_set_early_filter(ops, buf, enable) do { } while (0) | 548 | #define ftrace_set_early_filter(ops, buf, enable) do { } while (0) |
549 | #define ftrace_set_filter_ip(ops, ip, remove, reset) ({ -ENODEV; }) | ||
547 | #define ftrace_set_filter(ops, buf, len, reset) ({ -ENODEV; }) | 550 | #define ftrace_set_filter(ops, buf, len, reset) ({ -ENODEV; }) |
548 | #define ftrace_set_notrace(ops, buf, len, reset) ({ -ENODEV; }) | 551 | #define ftrace_set_notrace(ops, buf, len, reset) ({ -ENODEV; }) |
549 | #define ftrace_free_filter(ops) do { } while (0) | 552 | #define ftrace_free_filter(ops) do { } while (0) |