public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] x8664_ksyms.c: unexport register_die_notifier
@ 2005-01-16  7:46 Adrian Bunk
  2005-01-17  9:26 ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: Adrian Bunk @ 2005-01-16  7:46 UTC (permalink / raw)
  To: ak; +Cc: discuss, linux-kernel

The only user of register_die_notifier (kernel/kprobes.c) can't be 
built modular. Therefore, it's the EXPORT_SYMBOL is superfluous.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.11-rc1-mm1-full/arch/x86_64/kernel/x8664_ksyms.c.old	2005-01-16 05:38:17.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/x86_64/kernel/x8664_ksyms.c	2005-01-16 08:45:54.000000000 +0100
@@ -198,7 +198,6 @@
 #endif
 
 EXPORT_SYMBOL(die_chain);
-EXPORT_SYMBOL(register_die_notifier);
 
 #ifdef CONFIG_SMP
 EXPORT_SYMBOL(cpu_sibling_map);


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [2.6 patch] x8664_ksyms.c: unexport register_die_notifier
  2005-01-16  7:46 [2.6 patch] x8664_ksyms.c: unexport register_die_notifier Adrian Bunk
@ 2005-01-17  9:26 ` Andi Kleen
  2005-01-17  9:54   ` Arjan van de Ven
  0 siblings, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2005-01-17  9:26 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: ak, discuss, linux-kernel

On Sun, Jan 16, 2005 at 08:46:49AM +0100, Adrian Bunk wrote:
> The only user of register_die_notifier (kernel/kprobes.c) can't be 
> built modular. Therefore, it's the EXPORT_SYMBOL is superfluous.

Please don't apply this, it was especially intended for modular debuggers.
There is already a hacvked kdb around that uses it.

-Andi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [2.6 patch] x8664_ksyms.c: unexport register_die_notifier
  2005-01-17  9:26 ` Andi Kleen
@ 2005-01-17  9:54   ` Arjan van de Ven
  2005-01-17 10:07     ` [discuss] " Tigran Aivazian
  2005-01-17 10:13     ` Andi Kleen
  0 siblings, 2 replies; 7+ messages in thread
From: Arjan van de Ven @ 2005-01-17  9:54 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Adrian Bunk, discuss, linux-kernel

On Mon, 2005-01-17 at 10:26 +0100, Andi Kleen wrote:
> On Sun, Jan 16, 2005 at 08:46:49AM +0100, Adrian Bunk wrote:
> > The only user of register_die_notifier (kernel/kprobes.c) can't be 
> > built modular. Therefore, it's the EXPORT_SYMBOL is superfluous.
> 
> Please don't apply this, it was especially intended for modular debuggers.
> There is already a hacvked kdb around that uses it.

eh didn't Tigran just mail lkml claiming that kdb and x86-64 really
don't mix ??




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [discuss] Re: [2.6 patch] x8664_ksyms.c: unexport register_die_notifier
  2005-01-17  9:54   ` Arjan van de Ven
@ 2005-01-17 10:07     ` Tigran Aivazian
  2005-01-17 10:13     ` Andi Kleen
  1 sibling, 0 replies; 7+ messages in thread
From: Tigran Aivazian @ 2005-01-17 10:07 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Andi Kleen, Adrian Bunk, discuss, linux-kernel

On Mon, 17 Jan 2005, Arjan van de Ven wrote:

> On Mon, 2005-01-17 at 10:26 +0100, Andi Kleen wrote:
>> On Sun, Jan 16, 2005 at 08:46:49AM +0100, Adrian Bunk wrote:
>>> The only user of register_die_notifier (kernel/kprobes.c) can't be
>>> built modular. Therefore, it's the EXPORT_SYMBOL is superfluous.
>>
>> Please don't apply this, it was especially intended for modular debuggers.
>> There is already a hacvked kdb around that uses it.
>
> eh didn't Tigran just mail lkml claiming that kdb and x86-64 really
> don't mix ??

No, I emailed saying that kdb on x86_64 does NOT show the values of 
parameters passed to functions in the backtrace. And, ok, it has some 
other bugs (e.g. reboot doesn't work on SMP) too. But generally speaking 
kdb does work on x86_64. It just still has bugs, but so does every piece 
of software. We should just fix them all, that's all :)

Kind regards
Tigran

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [2.6 patch] x8664_ksyms.c: unexport register_die_notifier
  2005-01-17  9:54   ` Arjan van de Ven
  2005-01-17 10:07     ` [discuss] " Tigran Aivazian
@ 2005-01-17 10:13     ` Andi Kleen
  2005-01-17 11:19       ` Arjan van de Ven
  1 sibling, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2005-01-17 10:13 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Andi Kleen, Adrian Bunk, discuss, linux-kernel

On Mon, Jan 17, 2005 at 10:54:18AM +0100, Arjan van de Ven wrote:
> On Mon, 2005-01-17 at 10:26 +0100, Andi Kleen wrote:
> > On Sun, Jan 16, 2005 at 08:46:49AM +0100, Adrian Bunk wrote:
> > > The only user of register_die_notifier (kernel/kprobes.c) can't be 
> > > built modular. Therefore, it's the EXPORT_SYMBOL is superfluous.
> > 
> > Please don't apply this, it was especially intended for modular debuggers.
> > There is already a hacvked kdb around that uses it.
> 
> eh didn't Tigran just mail lkml claiming that kdb and x86-64 really
> don't mix ??

It cannot display function arguments and uses imprecise backtrace right now
(like normal oopses), other than that it works just fine. 

-Andi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [2.6 patch] x8664_ksyms.c: unexport register_die_notifier
  2005-01-17 10:13     ` Andi Kleen
@ 2005-01-17 11:19       ` Arjan van de Ven
  2005-01-17 11:26         ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: Arjan van de Ven @ 2005-01-17 11:19 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Adrian Bunk, discuss, linux-kernel

On Mon, 2005-01-17 at 11:13 +0100, Andi Kleen wrote:
> On Mon, Jan 17, 2005 at 10:54:18AM +0100, Arjan van de Ven wrote:
> > On Mon, 2005-01-17 at 10:26 +0100, Andi Kleen wrote:
> > > On Sun, Jan 16, 2005 at 08:46:49AM +0100, Adrian Bunk wrote:
> > > > The only user of register_die_notifier (kernel/kprobes.c) can't be 
> > > > built modular. Therefore, it's the EXPORT_SYMBOL is superfluous.
> > > 
> > > Please don't apply this, it was especially intended for modular debuggers.
> > > There is already a hacvked kdb around that uses it.
> > 
> > eh didn't Tigran just mail lkml claiming that kdb and x86-64 really
> > don't mix ??
> 
> It cannot display function arguments and uses imprecise backtrace right now
> (like normal oopses), other than that it works just fine. 

does it need any other kernel patches? Because if it does it might as
well patch this export in for it's specialist use


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [2.6 patch] x8664_ksyms.c: unexport register_die_notifier
  2005-01-17 11:19       ` Arjan van de Ven
@ 2005-01-17 11:26         ` Andi Kleen
  0 siblings, 0 replies; 7+ messages in thread
From: Andi Kleen @ 2005-01-17 11:26 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Andi Kleen, Adrian Bunk, discuss, linux-kernel

On Mon, Jan 17, 2005 at 12:19:28PM +0100, Arjan van de Ven wrote:
> On Mon, 2005-01-17 at 11:13 +0100, Andi Kleen wrote:
> > On Mon, Jan 17, 2005 at 10:54:18AM +0100, Arjan van de Ven wrote:
> > > On Mon, 2005-01-17 at 10:26 +0100, Andi Kleen wrote:
> > > > On Sun, Jan 16, 2005 at 08:46:49AM +0100, Adrian Bunk wrote:
> > > > > The only user of register_die_notifier (kernel/kprobes.c) can't be 
> > > > > built modular. Therefore, it's the EXPORT_SYMBOL is superfluous.
> > > > 
> > > > Please don't apply this, it was especially intended for modular debuggers.
> > > > There is already a hacvked kdb around that uses it.
> > > 
> > > eh didn't Tigran just mail lkml claiming that kdb and x86-64 really
> > > don't mix ??
> > 
> > It cannot display function arguments and uses imprecise backtrace right now
> > (like normal oopses), other than that it works just fine. 
> 
> does it need any other kernel patches? Because if it does it might as
> well patch this export in for it's specialist use

The modular kdb needs other patches right now yes, but I would still
like to keep it for other debuggers. Previously we always had tons of 
ugly patchkit comming with every debugging add on and the exception 
notifiers were exactly designed to provide a clean interface for 
everybody for this.  I definitely don't want to go back to the old 
"own patch for everbody" mess again on x86-64.

-Andi
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-17 11:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-16  7:46 [2.6 patch] x8664_ksyms.c: unexport register_die_notifier Adrian Bunk
2005-01-17  9:26 ` Andi Kleen
2005-01-17  9:54   ` Arjan van de Ven
2005-01-17 10:07     ` [discuss] " Tigran Aivazian
2005-01-17 10:13     ` Andi Kleen
2005-01-17 11:19       ` Arjan van de Ven
2005-01-17 11:26         ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox