lkml.org 
[lkml]   [2004]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] Latency Tracer, voluntary-preempt-2.6.8-rc4-O6
On Tue, Aug 17, 2004 at 03:02:18PM +0100, Paulo Marques wrote:
> >
> >kdb uses aliased symbols as well. The user can enter any kernel symbol
> >name and have it converted to an address.
>
> Ok, I'll leave them alone, then.
>
> Just another quick question: is kallsyms_names only used by the
> functions in kallsyms.c and everyone else simply uses those functions,
> or are there direct users of kallsyms_names?
>
> This is because another thing I was pondering was to change the stem
> compression scheme into a different one, changing all the stuff in
> kallsyms.c accordingly. If there are direct users of kallsyms_names,
> this would break them. There are none in the vanilla kernel as far as I
> can grep, but there might be outside (like in kdb).
>
> I've done some tests with a different scheme and my uncompressed 170kb
> symbol table goes to about 134kb with stem compression and to about 90kb
> with the new scheme. This is not usable right now because compression
> still takes a long time (although the decompression inside
> kernel/kallsyms.c is even simpler than it is now). I'm now trying to
> speed up compression.
>
> As always, comments will be greatly appreciated :)

Hi Paulo.

kallsyms_names should only be used by kallsyms, so there
are no issue changing this interface.
That said do not put too much effort moving kode from the kernel to
kallsyms.c. kallsyms support can be deselected, and users will not
care about the little extra overhead (down in noise compared
with the symbols).
Keeping the data passed in from the build tools as simple as possible
is the better goal here. Then the kernel can implement the extra
code to optimize speed.



kallsyms parses the output of objdump as does other tools in the kernel.
Would you be willing to look into an elf-tool for the kernel?

A consistent output from an Elf-tool is preferred as replacement
for the hacking needed to use output from objdump and nm.
See arch/sparc/boot/btfixup as a horrid example.

objdump and nm has been optimised for human readable output,
and is not easy to parse up for various tricky usage.

Rusty Russell's module-init-tools has some good starting stuff.

PS. Please cc: me on future patches in this area - thanks.

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

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.051 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site