summaryrefslogtreecommitdiffstats
path: root/kernel/profile.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2007-01-23 05:40:33 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-01-23 16:52:05 +0100
commitbbe1a59b3a3d4af3869647d294618a23f6c9c6a4 (patch)
tree6d5d6bd4ccd230919ba1f20d14868bcb03ac4215 /kernel/profile.c
parent[PATCH] x86: fix PDA variables to work during boot (diff)
downloadlinux-bbe1a59b3a3d4af3869647d294618a23f6c9c6a4.tar.xz
linux-bbe1a59b3a3d4af3869647d294618a23f6c9c6a4.zip
[PATCH] fix "kvm: add vm exit profiling"
export profile_hits() on !SMP too. Cc: Ingo Molnar <mingo@elte.hu> Cc: Avi Kivity <avi@qumranet.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/profile.c')
-rw-r--r--kernel/profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/profile.c b/kernel/profile.c
index a6574a18514e..d6579d511069 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -331,7 +331,6 @@ out:
local_irq_restore(flags);
put_cpu();
}
-EXPORT_SYMBOL_GPL(profile_hits);
static int __devinit profile_cpu_callback(struct notifier_block *info,
unsigned long action, void *__cpu)
@@ -401,6 +400,8 @@ void profile_hits(int type, void *__pc, unsigned int nr_hits)
}
#endif /* !CONFIG_SMP */
+EXPORT_SYMBOL_GPL(profile_hits);
+
void profile_tick(int type)
{
struct pt_regs *regs = get_irq_regs();