* [RFC: 2.6 patch] unexport profile_pc
@ 2005-01-20 18:20 Adrian Bunk
2005-01-20 18:59 ` William Lee Irwin III
2005-01-20 19:16 ` Zwane Mwaikambo
0 siblings, 2 replies; 7+ messages in thread
From: Adrian Bunk @ 2005-01-20 18:20 UTC (permalink / raw)
To: linux-kernel
I haven't found any modular usage of profile_pc in the kernel.
Is the patch below correct?
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
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(-)
--- linux-2.6.11-rc1-mm2-full/arch/i386/kernel/time.c.old 2005-01-20 19:00:34.000000000 +0100
+++ linux-2.6.11-rc1-mm2-full/arch/i386/kernel/time.c 2005-01-20 19:00:44.000000000 +0100
@@ -209,7 +209,6 @@
return pc;
}
-EXPORT_SYMBOL(profile_pc);
#endif
/*
--- linux-2.6.11-rc1-mm2-full/arch/sparc64/kernel/time.c.old 2005-01-20 19:00:52.000000000 +0100
+++ linux-2.6.11-rc1-mm2-full/arch/sparc64/kernel/time.c 2005-01-20 19:00:56.000000000 +0100
@@ -86,7 +86,6 @@
return regs->u_regs[UREG_RETPC];
return pc;
}
-EXPORT_SYMBOL(profile_pc);
#endif
static void tick_disable_protection(void)
--- linux-2.6.11-rc1-mm2-full/arch/arm/kernel/time.c.old 2005-01-20 19:01:05.000000000 +0100
+++ linux-2.6.11-rc1-mm2-full/arch/arm/kernel/time.c 2005-01-20 19:01:08.000000000 +0100
@@ -69,7 +69,6 @@
return pc;
}
-EXPORT_SYMBOL(profile_pc);
#endif
/*
--- linux-2.6.11-rc1-mm2-full/arch/ppc/kernel/time.c.old 2005-01-20 19:01:14.000000000 +0100
+++ linux-2.6.11-rc1-mm2-full/arch/ppc/kernel/time.c 2005-01-20 19:01:18.000000000 +0100
@@ -119,7 +119,6 @@
return pc;
}
-EXPORT_SYMBOL(profile_pc);
#endif
/*
--- linux-2.6.11-rc1-mm2-full/arch/ppc64/kernel/time.c.old 2005-01-20 19:01:25.000000000 +0100
+++ linux-2.6.11-rc1-mm2-full/arch/ppc64/kernel/time.c 2005-01-20 19:01:29.000000000 +0100
@@ -206,7 +206,6 @@
return pc;
}
-EXPORT_SYMBOL(profile_pc);
#endif
#ifdef CONFIG_PPC_ISERIES
--- linux-2.6.11-rc1-mm2-full/arch/x86_64/kernel/time.c.old 2005-01-20 19:01:36.000000000 +0100
+++ linux-2.6.11-rc1-mm2-full/arch/x86_64/kernel/time.c 2005-01-20 19:01:42.000000000 +0100
@@ -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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC: 2.6 patch] unexport profile_pc
2005-01-20 18:20 [RFC: 2.6 patch] unexport profile_pc Adrian Bunk
@ 2005-01-20 18:59 ` William Lee Irwin III
2005-01-20 19:39 ` Christoph Hellwig
2005-01-20 19:16 ` Zwane Mwaikambo
1 sibling, 1 reply; 7+ messages in thread
From: William Lee Irwin III @ 2005-01-20 18:59 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
On Thu, Jan 20, 2005 at 07:20:19PM +0100, Adrian Bunk wrote:
> I haven't found any modular usage of profile_pc in the kernel.
> Is the patch below correct?
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
In theory, /proc/ can be modular. In practice...
-- wli
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC: 2.6 patch] unexport profile_pc
2005-01-20 18:59 ` William Lee Irwin III
@ 2005-01-20 19:39 ` Christoph Hellwig
2005-01-20 19:50 ` William Lee Irwin III
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2005-01-20 19:39 UTC (permalink / raw)
To: William Lee Irwin III; +Cc: Adrian Bunk, linux-kernel
On Thu, Jan 20, 2005 at 10:59:17AM -0800, William Lee Irwin III wrote:
> On Thu, Jan 20, 2005 at 07:20:19PM +0100, Adrian Bunk wrote:
> > I haven't found any modular usage of profile_pc in the kernel.
> > Is the patch below correct?
> > Signed-off-by: Adrian Bunk <bunk@stusta.de>
>
> In theory, /proc/ can be modular. In practice...
Not even in theory.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC: 2.6 patch] unexport profile_pc
2005-01-20 19:39 ` Christoph Hellwig
@ 2005-01-20 19:50 ` William Lee Irwin III
0 siblings, 0 replies; 7+ messages in thread
From: William Lee Irwin III @ 2005-01-20 19:50 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Adrian Bunk, linux-kernel
On Thu, Jan 20, 2005 at 10:59:17AM -0800, William Lee Irwin III wrote:
>> In theory, /proc/ can be modular. In practice...
On Thu, Jan 20, 2005 at 07:39:38PM +0000, Christoph Hellwig wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC: 2.6 patch] unexport profile_pc
2005-01-20 18:20 [RFC: 2.6 patch] unexport profile_pc Adrian Bunk
2005-01-20 18:59 ` William Lee Irwin III
@ 2005-01-20 19:16 ` Zwane Mwaikambo
2005-01-20 21:12 ` John Levon
1 sibling, 1 reply; 7+ messages in thread
From: Zwane Mwaikambo @ 2005-01-20 19:16 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
On Thu, 20 Jan 2005, Adrian Bunk wrote:
> I haven't found any modular usage of profile_pc in the kernel.
>
> Is the patch below correct?
Oprofile?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC: 2.6 patch] unexport profile_pc
2005-01-20 19:16 ` Zwane Mwaikambo
@ 2005-01-20 21:12 ` John Levon
2005-01-21 21:42 ` Zwane Mwaikambo
0 siblings, 1 reply; 7+ messages in thread
From: John Levon @ 2005-01-20 21:12 UTC (permalink / raw)
To: Zwane Mwaikambo; +Cc: Adrian Bunk, linux-kernel
On Thu, Jan 20, 2005 at 12:16:52PM -0700, Zwane Mwaikambo wrote:
> > 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC: 2.6 patch] unexport profile_pc
2005-01-20 21:12 ` John Levon
@ 2005-01-21 21:42 ` Zwane Mwaikambo
0 siblings, 0 replies; 7+ messages in thread
From: Zwane Mwaikambo @ 2005-01-21 21:42 UTC (permalink / raw)
To: John Levon; +Cc: Adrian Bunk, linux-kernel
On Thu, 20 Jan 2005, John Levon wrote:
> On Thu, Jan 20, 2005 at 12:16:52PM -0700, Zwane Mwaikambo wrote:
>
> > > 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-01-21 21:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 18:20 [RFC: 2.6 patch] unexport profile_pc Adrian Bunk
2005-01-20 18:59 ` William Lee Irwin III
2005-01-20 19:39 ` Christoph Hellwig
2005-01-20 19:50 ` William Lee Irwin III
2005-01-20 19:16 ` Zwane Mwaikambo
2005-01-20 21:12 ` John Levon
2005-01-21 21:42 ` Zwane Mwaikambo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox