Skip to contentSkip to conversation

unexport profile_pc

RFC PATCH In review Adrian Bunk 5 participants 7 messages Jan 20, 2005 – Jan 21, 2005 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 unexport profile_pc

I haven't found any modular usage of profile_pc in the kernel.

Is the patch below correct?

---

 arch/arm/kernel/time.c     |    1 -
 arch/i386/kernel/time.c    |    1 -
 arch/ppc/kernel/time.c     |    1 -
 arch/ppc64/kernel/time.c   |    1 -
 arch/sparc64/kernel/time.c |    1 -
 arch/x86_64/kernel/time.c  |    1 -
 6 files changed, 6 deletions(-)
arch/i386/kernel/time.c renamed from arch/i386/kernel/time.c.old +0 -1
@@ -209,7 +209,6 @@
 
 	return pc;
 }
-EXPORT_SYMBOL(profile_pc);
 #endif
 
 /*
arch/sparc64/kernel/time.c renamed from arch/sparc64/kernel/time.c.old +0 -1
@@ -86,7 +86,6 @@
 		return regs->u_regs[UREG_RETPC];
 	return pc;
 }
-EXPORT_SYMBOL(profile_pc);
 #endif
 
 static void tick_disable_protection(void)
arch/arm/kernel/time.c renamed from arch/arm/kernel/time.c.old +0 -1
@@ -69,7 +69,6 @@
 
 	return pc;
 }
-EXPORT_SYMBOL(profile_pc);
 #endif
 
 /*
arch/ppc/kernel/time.c renamed from arch/ppc/kernel/time.c.old +0 -1
@@ -119,7 +119,6 @@
 
 	return pc;
 }
-EXPORT_SYMBOL(profile_pc);
 #endif
 
 /*
arch/ppc64/kernel/time.c renamed from arch/ppc64/kernel/time.c.old +0 -1
@@ -206,7 +206,6 @@
 
 	return pc;
 }
-EXPORT_SYMBOL(profile_pc);
 #endif
 
 #ifdef CONFIG_PPC_ISERIES
arch/x86_64/kernel/time.c renamed from arch/x86_64/kernel/time.c.old +0 -1
@@ -199,7 +199,6 @@
 	}
 	return pc;
 }
-EXPORT_SYMBOL(profile_pc);
 
 /*
  * In order to set the CMOS clock precisely, set_rtc_mmss has to be called 500
#3 lore raw
Quoted 1 line · William Lee Irwin III
Quoted 1 line

In theory, /proc/ can be modular. In practice...

Quoted 1 line · Christoph Hellwig

Not even in theory.

I have vague recollections of modular /proc/ "fixes" being posted. I don't have any vested (or other) interest in the thing being modular and generally avoid modules altogether myself. fs/Kconfig of course reveals that this "option" has since been removed, to my complete indifference.

-- wli

#5 lore raw
In reply to Zwane Mwaikambo
Quoted 3 lines · Zwane Mwaikambo
Quoted 1 line

I haven't found any modular usage of profile_pc in the kernel.

Oprofile?

We don't actually use it, but it looks like maybe we should? It seems unfortunate that readprofile and OProfile should disagree here.

john

#6 lore raw
Quoted 8 lines · John Levon
Quoted 3 lines · Zwane Mwaikambo
Quoted 1 line

I haven't found any modular usage of profile_pc in the kernel.

Oprofile?

We don't actually use it, but it looks like maybe we should? It seems unfortunate that readprofile and OProfile should disagree here.

We really should be using it otherwise you get profile hits in the spin_lock functions, which isn't really helpful. I recall sending patches for this, i may have to resend.