Re: Issues with symbol names

From: Kristis Makris
Date: Wed Apr 05 2006 - 18:49:54 EST


On Thu, 2006-04-06 at 00:05 +0200, Andreas Schwab wrote:
> Kristis Makris <kristis.makris@xxxxxxx> writes:
>
> > My goal here is to use /proc/kallsyms to determine the size of a function
> > image at runtime.
>
> The size is also recorded in the symbol table.

Do you mean the vmlinux image ? That is not the case for modules that
were dynamically loaded.

This is when problems begin. If one loads a module that happens to be
placed in memory that originally belonged to the __init functions,
then /proc/kallsyms will still report them and throw off this logic. And
perhaps the original module file won't be around to try and get the
function sizes from it.

I suppose I'd rather rely on computing this size from runtime
information...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/