diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:50 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 14:56:05 -0400 |
commit | 9ff9cdb2d3b0971f89e899b3420aadd91bddc215 (patch) | |
tree | ad669d9bf015355ce8ea312a9fc140b63e1a4250 /kernel/trace | |
parent | 6fb44b717c10ecf37beaaebd312f3afa93fed714 (diff) |
ftrace: cleanups
clean up recent code.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/ftrace.c | 5 | ||||
-rw-r--r-- | kernel/trace/trace_irqsoff.c | 2 | ||||
-rw-r--r-- | kernel/trace/trace_selftest.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index ff42345dd78e..425b1fec3d83 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -197,8 +197,8 @@ static int ftrace_record_suspend; | |||
197 | 197 | ||
198 | static struct dyn_ftrace *ftrace_free_records; | 198 | static struct dyn_ftrace *ftrace_free_records; |
199 | 199 | ||
200 | static inline int | 200 | static inline int notrace |
201 | notrace ftrace_ip_in_hash(unsigned long ip, unsigned long key) | 201 | ftrace_ip_in_hash(unsigned long ip, unsigned long key) |
202 | { | 202 | { |
203 | struct dyn_ftrace *p; | 203 | struct dyn_ftrace *p; |
204 | struct hlist_node *t; | 204 | struct hlist_node *t; |
@@ -1249,6 +1249,7 @@ static int __init notrace ftrace_dynamic_init(void) | |||
1249 | int ret; | 1249 | int ret; |
1250 | 1250 | ||
1251 | addr = (unsigned long)ftrace_record_ip; | 1251 | addr = (unsigned long)ftrace_record_ip; |
1252 | |||
1252 | stop_machine_run(ftrace_dyn_arch_init, &addr, NR_CPUS); | 1253 | stop_machine_run(ftrace_dyn_arch_init, &addr, NR_CPUS); |
1253 | 1254 | ||
1254 | /* ftrace_dyn_arch_init places the return code in addr */ | 1255 | /* ftrace_dyn_arch_init places the return code in addr */ |
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c index 3269f4ff5172..2ac0d09db6fb 100644 --- a/kernel/trace/trace_irqsoff.c +++ b/kernel/trace/trace_irqsoff.c | |||
@@ -309,7 +309,7 @@ void trace_softirqs_off(unsigned long ip) | |||
309 | { | 309 | { |
310 | } | 310 | } |
311 | 311 | ||
312 | inline void print_irqtrace_events(struct task_struct *curr) | 312 | inline notrace void print_irqtrace_events(struct task_struct *curr) |
313 | { | 313 | { |
314 | } | 314 | } |
315 | 315 | ||
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 85715b86a342..546307de6e3d 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #include <linux/kthread.h> | 3 | #include <linux/kthread.h> |
4 | #include <linux/delay.h> | 4 | #include <linux/delay.h> |
5 | 5 | ||
6 | static inline int trace_valid_entry(struct trace_entry *entry) | 6 | static notrace inline int trace_valid_entry(struct trace_entry *entry) |
7 | { | 7 | { |
8 | switch (entry->type) { | 8 | switch (entry->type) { |
9 | case TRACE_FN: | 9 | case TRACE_FN: |