[PATCH] Export re{serv,leas}e_pmc_hardware() for oprofile

David Woodhouse dwmw2 at infradead.org
Fri Apr 1 06:44:47 EST 2005


CONFIG_OPROFILE=m doesn't work on ppc64 if these aren't exported...

Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

--- linux-2.6.11/arch/ppc64/kernel/pmc.c.orig	2005-03-31 20:31:07.000000000 +0100
+++ linux-2.6.11/arch/ppc64/kernel/pmc.c	2005-03-31 20:30:15.000000000 +0100
@@ -12,6 +12,7 @@
 #include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/spinlock.h>
+#include <linux/module.h>
 
 #include <asm/processor.h>
 #include <asm/pmc.h>
@@ -50,6 +51,7 @@ int reserve_pmc_hardware(perf_irq_t new_
 	spin_unlock(&pmc_owner_lock);
 	return err;
 }
+EXPORT_SYMBOL_GPL(reserve_pmc_hardware);
 
 void release_pmc_hardware(void)
 {
@@ -62,3 +64,4 @@ void release_pmc_hardware(void)
 
 	spin_unlock(&pmc_owner_lock);
 }
+EXPORT_SYMBOL_GPL(release_pmc_hardware);


-- 
dwmw2




More information about the Linuxppc64-dev mailing list