Re: [PATCH 2/2] Replace the linear search with a binary search for locate the symbols

From: Andi Kleen
Date: Fri Mar 25 2011 - 11:41:36 EST


On Fri, Mar 25, 2011 at 03:44:24PM +1030, Rusty Russell wrote:
> On Thu, 24 Mar 2011 08:54:57 -0700, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> > Alessio Igor Bogani <abogani@xxxxxxxxxx> writes:
> >
> > > This work was supported by a hardware donation from the CE Linux Forum.
> >
> > Patch looks good to me. SORT is a nice trick, too bad it won't
> > work for the main kernel.
>
> Why not?

Because kallsyms is supposed to be in address order, not name order.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/