Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-05 Thread Paulo Marques
Mathieu Desnoyers wrote: * Paulo Marques ([EMAIL PROTECTED]) wrote: When resolving symbol names from addresses with aliased symbol names, kallsyms_lookup always returns the first symbol, even if it is a weak symbol. [...] From: Paulo Marques <[EMAIL PROTECTED]> Signed-off-by: Mathieu Desnoyer

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-05 Thread Rusty Russell
On Wednesday 05 December 2007 09:31:23 Mathieu Desnoyers wrote: > * Arjan van de Ven ([EMAIL PROTECTED]) wrote: > > On Tue, 04 Dec 2007 20:35:32 + > > > > Paulo Marques <[EMAIL PROTECTED]> wrote: > > > When resolving symbol names from addresses with aliased symbol names, > > > kallsyms_lookup a

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: > On Tue, 04 Dec 2007 20:35:32 + Paulo Marques <[EMAIL PROTECTED]> wrote: > > > When resolving symbol names from addresses with aliased symbol names, > > kallsyms_lookup always returns the first symbol, even if it is a weak > > symbol. > > > > This

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Andrew Morton
On Tue, 04 Dec 2007 20:35:32 + Paulo Marques <[EMAIL PROTECTED]> wrote: > When resolving symbol names from addresses with aliased symbol names, > kallsyms_lookup always returns the first symbol, even if it is a weak > symbol. > > This patch changes this by sorting the symbols with the weak

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Andrew Morton
On Tue, 04 Dec 2007 20:35:32 + Paulo Marques <[EMAIL PROTECTED]> wrote: > When resolving symbol names from addresses with aliased symbol names, > kallsyms_lookup always returns the first symbol, even if it is a weak > symbol. > > This patch changes this by sorting the symbols with the weak

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Rusty Russell
On Wednesday 05 December 2007 07:35:32 Paulo Marques wrote: > When resolving symbol names from addresses with aliased symbol names, > kallsyms_lookup always returns the first symbol, even if it is a weak > symbol. Thanks, this looks great. Rusty. -- To unsubscribe from this list: send the line "u

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Mathieu Desnoyers
* Arjan van de Ven ([EMAIL PROTECTED]) wrote: > On Tue, 04 Dec 2007 20:35:32 + > Paulo Marques <[EMAIL PROTECTED]> wrote: > > > > > When resolving symbol names from addresses with aliased symbol names, > > kallsyms_lookup always returns the first symbol, even if it is a weak > > symbol. > >

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Mathieu Desnoyers
* Andrew Morton ([EMAIL PROTECTED]) wrote: > On Tue, 04 Dec 2007 20:35:32 + > Paulo Marques <[EMAIL PROTECTED]> wrote: > > > When resolving symbol names from addresses with aliased symbol names, > > kallsyms_lookup always returns the first symbol, even if it is a weak > > symbol. > > > > Th

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Arjan van de Ven
On Tue, 04 Dec 2007 20:35:32 + Paulo Marques <[EMAIL PROTECTED]> wrote: > > When resolving symbol names from addresses with aliased symbol names, > kallsyms_lookup always returns the first symbol, even if it is a weak > symbol. > > This patch changes this by sorting the symbols with the we

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Andrew Morton
On Tue, 04 Dec 2007 20:35:32 + Paulo Marques <[EMAIL PROTECTED]> wrote: > When resolving symbol names from addresses with aliased symbol names, > kallsyms_lookup always returns the first symbol, even if it is a weak > symbol. > > This patch changes this by sorting the symbols with the weak

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Mathieu Desnoyers
* Paulo Marques ([EMAIL PROTECTED]) wrote: > > When resolving symbol names from addresses with aliased symbol names, > kallsyms_lookup always returns the first symbol, even if it is a weak > symbol. > > This patch changes this by sorting the symbols with the weak symbols last > before feeding th

[-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Paulo Marques
When resolving symbol names from addresses with aliased symbol names, kallsyms_lookup always returns the first symbol, even if it is a weak symbol. This patch changes this by sorting the symbols with the weak symbols last before feeding them to the kernel. This way the kernel runtime isn't