unexport profile_pc
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
Quoted 3 lines · Adrian Bunk
I haven't found any modular usage of
profile_pcin the kernel. Is the patch below correct?Signed-off-by Adrian Bunk <[email protected]>
In theory, /proc/ can be modular. In practice...
-- wli
Quoted 6 lines · William Lee Irwin III
Quoted 3 lines · Adrian Bunk
I haven't found any modular usage of
profile_pcin the kernel. Is the patch below correct?Signed-off-by Adrian Bunk <[email protected]>In theory,
/proc/can be modular. In practice...
Not even in theory.
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
Quoted 3 lines · Adrian Bunk
I haven't found any modular usage of
profile_pcin the kernel.Is the patch below correct?
Oprofile?
Quoted 3 lines · Zwane Mwaikambo
Quoted 1 line
I haven't found any modular usage of
profile_pcin 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
Quoted 8 lines · John Levon
Quoted 3 lines · Zwane Mwaikambo
Quoted 1 line
I haven't found any modular usage of
profile_pcin 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.