diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index f615f974d90e..867bd1dd2dd0 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -1186,6 +1186,12 @@ static void free_ftrace_hash_rcu(struct ftrace_hash *hash) | |||
1186 | call_rcu_sched(&hash->rcu, __free_ftrace_hash_rcu); | 1186 | call_rcu_sched(&hash->rcu, __free_ftrace_hash_rcu); |
1187 | } | 1187 | } |
1188 | 1188 | ||
1189 | void ftrace_free_filter(struct ftrace_ops *ops) | ||
1190 | { | ||
1191 | free_ftrace_hash(ops->filter_hash); | ||
1192 | free_ftrace_hash(ops->notrace_hash); | ||
1193 | } | ||
1194 | |||
1189 | static struct ftrace_hash *alloc_ftrace_hash(int size_bits) | 1195 | static struct ftrace_hash *alloc_ftrace_hash(int size_bits) |
1190 | { | 1196 | { |
1191 | struct ftrace_hash *hash; | 1197 | struct ftrace_hash *hash; |