Re: [PATCH] reduce kallsyms table size on 64-bit arch-s

From: Paulo Marques
Date: Wed Jul 01 2009 - 12:37:52 EST


Jan Beulich wrote:
> Some architectures (the patch carries it out for x86-64) can reduce the
> kallsyms pointer table's size by half through the use of relative 32-
> bit pointers. Since the kallsyms tables get created as assembly files
> anyway, the adjustment is strait forward and only requires a little bit
> of abstraction at the consuming side.

I've been wanting to do this for a long time, so I'm really glad someone
stepped up to do it for me :)

I've reviewed the patch and it looks good. I worry that other
architectures have strange uses for addresses that might produce larger
than 32 bit offsets, especially with CONFIG_KALLSYMS_ALL, but since this
is an "opt-in" config option, I guess it's ok.

Acked-by: Paulo Marques <pmarques@xxxxxxxxxxxx>

> Further, independent of architecture, kallsyms_num_syms and
> kallsyms_markers[] can use 32-bit types.
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--
Paulo Marques - www.grupopie.com

"Who is general Failure and why is he reading my disk?"
--
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/