Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Cyrill Gorcunov <gorcunov@...>
Cc: LKML <linux-kernel@...>, Ingo Molnar <mingo@...>, David Miller <davem@...>, Andrew Morton <akpm@...>, Paul Mackerras <paulus@...>, Peter Zijlstra <peterz@...>, Thomas Gleixner <tglx@...>
Date: Wednesday, January 23, 2008 - 2:59 pm

Cyrill Gorcunov wrote:

Ah, now I understand your confusion: kallsyms_lookup_name doesn't fill 
the name. It searches the name and returns the address. It is the 
_caller_ that fills the name, not kallsyms_lookup_name.

It is used for stuff like: "give me the address of function foo":
addr = kallsyms_lookup_name("foo");


I think that using KSYM_NAME_LEN would be a nice cleanup for xmon, but 
it is for the powerpc guys to decide if they want to do it. I just 
wanted to point the change in behavior so that it wouldn't go unnoticed.

For all we know, the stack may at that point be close to full and an 
extra 64 bytes may tip it over the edge.


No problem. I always keep an eye out for kallsyms related stuff.

-- 
Paulo Marques - www.grupopie.com

"There cannot be a crisis today; my schedule is already full."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 1:38 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Paulo Marques, (Wed Jan 23, 2:26 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 2:43 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Paulo Marques, (Wed Jan 23, 2:59 pm)
Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 3:07 pm)