login
Header Space

 
 

Re: /proc/kallsyms broken in 2.6.26-rc1-git6

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <andi@...>
Cc: <linux-kernel@...>
Date: Monday, May 12, 2008 - 5:55 am

Andi Kleen wrote:

Hum... System.map is generated by running

nm -n vmlinux | grep -v '\( [aUw] \)\|\(__crc_\)\|\( \$[adt]\)' > System.map

whereas the kallsyms symbols come from:

nm -n vmlinux

So, the only difference is the filter made by that "grep -v" to exclude 
a few classes of symbols.

Maybe I lost myself in that expression, but it doesn't seem like it 
would be able to filter out the symbols you're seeing. Are you sure the 
same symbols don't appear in System.map?


I don't know enough about the markers infrastructure but I guess these 
"addresses" are more like an "offset" into a markers structure that is 
automatically produced by putting these symbols into a special section 
that starts at offset 0.


Ok.


Well, my first suspects would be these:

CONFIG_KPROBES=y
CONFIG_KRETPROBES=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y


I don't have the time right now to try your configuration and pinpoint 
the problem, but if you can come up with a plan, like: "we need to 
filter out symbols from the output of "nm" whose type is 'N'", I'll be 
more than happy to provide a patch to fix it...

-- 
Paulo Marques - www.grupopie.com

"Nostalgia isn't what it used to be."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
/proc/kallsyms broken in 2.6.26-rc1-git6, Andi Kleen, (Fri May 9, 1:41 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Paulo Marques, (Fri May 9, 2:03 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Andi Kleen, (Fri May 9, 3:36 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Paulo Marques, (Fri May 9, 3:59 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Andi Kleen, (Fri May 9, 7:16 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Paulo Marques, (Mon May 12, 5:55 am)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Andi Kleen, (Mon May 12, 6:08 am)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Alexey Dobriyan, (Fri May 9, 7:37 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Paulo Marques, (Mon May 12, 6:00 am)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Cyrill Gorcunov, (Mon May 12, 11:50 am)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Sam Ravnborg, (Mon May 12, 1:23 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Andi Kleen, (Tue May 13, 5:54 am)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Sam Ravnborg, (Mon May 19, 2:11 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Cyrill Gorcunov, (Mon May 19, 2:15 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Sam Ravnborg, (Mon May 19, 2:21 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Cyrill Gorcunov, (Mon May 19, 2:22 pm)
Re: /proc/kallsyms broken in 2.6.26-rc1-git6, Cyrill Gorcunov, (Mon May 12, 1:28 pm)
speck-geostationary