Re: /proc/kallsyms and symbol size

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paulo Marques
Date: Tuesday, September 25, 2007 - 9:21 am

Stephane Eranian wrote:

Hi, Stephane


That is actually what the kernel does internally, too. It does not keep 
the size of the symbol, but tries to guess it from the address of the 
next non-aliased symbol.

Since the addresses are sorted, this works fine most of the time. This 
is done to reduce the size used by the symbol table in the running kernel.

Just take a look at "get_symbol_pos" in kernel/kallsyms.c and 
"get_ksymbol" in kernel/module.c to see exactly how this is done

-- 
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:
/proc/kallsyms and symbol size, Stephane Eranian, (Mon Sep 24, 1:55 pm)
Re: /proc/kallsyms and symbol size, Paulo Marques, (Tue Sep 25, 9:21 am)
Re: /proc/kallsyms and symbol size, Stephane Eranian, (Tue Sep 25, 11:50 pm)