diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-04-19 13:19:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:55 -0400 |
commit | 5deb45e39b946901ae028ccd3a1d0b35fa387475 (patch) | |
tree | a29b8d4cffbd1183158d8d77b869181eaa934ff8 /arch/x86/kernel/nmi_64.c | |
parent | 4bd01600b214275a80a69b44393d7e81d43c2faa (diff) |
ftrace: add notrace annotations for NMI routines
This annotates NMI functions with notrace. Some tracers may be able
to live with this, but some cannot. The safest is to turn it off,
it's not particularly interesting anyway.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/nmi_64.c')
-rw-r--r-- | arch/x86/kernel/nmi_64.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/nmi_64.c b/arch/x86/kernel/nmi_64.c index 11f9130ac51..5a29ded994f 100644 --- a/arch/x86/kernel/nmi_64.c +++ b/arch/x86/kernel/nmi_64.c | |||
@@ -313,7 +313,8 @@ void touch_nmi_watchdog(void) | |||
313 | } | 313 | } |
314 | EXPORT_SYMBOL(touch_nmi_watchdog); | 314 | EXPORT_SYMBOL(touch_nmi_watchdog); |
315 | 315 | ||
316 | int __kprobes nmi_watchdog_tick(struct pt_regs * regs, unsigned reason) | 316 | notrace __kprobes int |
317 | nmi_watchdog_tick(struct pt_regs *regs, unsigned reason) | ||
317 | { | 318 | { |
318 | int sum; | 319 | int sum; |
319 | int touched = 0; | 320 | int touched = 0; |
@@ -384,7 +385,8 @@ int __kprobes nmi_watchdog_tick(struct pt_regs * regs, unsigned reason) | |||
384 | 385 | ||
385 | static unsigned ignore_nmis; | 386 | static unsigned ignore_nmis; |
386 | 387 | ||
387 | asmlinkage __kprobes void do_nmi(struct pt_regs * regs, long error_code) | 388 | asmlinkage notrace __kprobes void |
389 | do_nmi(struct pt_regs *regs, long error_code) | ||
388 | { | 390 | { |
389 | nmi_enter(); | 391 | nmi_enter(); |
390 | add_pda(__nmi_count,1); | 392 | add_pda(__nmi_count,1); |