diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2011-05-02 12:29:25 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2011-05-18 15:29:45 -0400 |
| commit | f45948e898e7bc76a73a468796d2ce80dd040058 (patch) | |
| tree | 483979d8030cc2cf156ed65218c03a2d6825d9f5 /include/linux | |
| parent | 1cf41dd79993389b012e4542ab502ce36ae7343f (diff) | |
ftrace: Create a global_ops to hold the filter and notrace hashes
Combine the filter and notrace hashes to be accessed by a single entity,
the global_ops. The global_ops is a ftrace_ops structure that is passed
to different functions that can read or modify the filtering of the
function tracer.
The ftrace_ops structure was modified to hold a filter and notrace
hashes so that later patches may allow each ftrace_ops to have its own
set of rules to what functions may be filtered.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ftrace.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 52fc5d4e6edd..6658a51390fe 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
| @@ -29,9 +29,15 @@ ftrace_enable_sysctl(struct ctl_table *table, int write, | |||
| 29 | 29 | ||
| 30 | typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip); | 30 | typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip); |
| 31 | 31 | ||
| 32 | struct ftrace_hash; | ||
| 33 | |||
| 32 | struct ftrace_ops { | 34 | struct ftrace_ops { |
| 33 | ftrace_func_t func; | 35 | ftrace_func_t func; |
| 34 | struct ftrace_ops *next; | 36 | struct ftrace_ops *next; |
| 37 | #ifdef CONFIG_DYNAMIC_FTRACE | ||
| 38 | struct ftrace_hash *notrace_hash; | ||
| 39 | struct ftrace_hash *filter_hash; | ||
| 40 | #endif | ||
| 35 | }; | 41 | }; |
| 36 | 42 | ||
| 37 | extern int function_trace_stop; | 43 | extern int function_trace_stop; |
