summaryrefslogtreecommitdiff
path: root/kernel/profile.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2007-01-22 20:40:33 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-01-23 07:52:05 -0800
commitbbe1a59b3a3d4af3869647d294618a23f6c9c6a4 (patch)
tree6d5d6bd4ccd230919ba1f20d14868bcb03ac4215 /kernel/profile.c
parent9ee79a3d372fcb6729893437f4923c5efd1f85db (diff)
[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 a6574a18514..d6579d51106 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();