[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v7 25/24] symbols/xsplice: Implement fast symbol names -> virtual addresses lookup

On Tue, Apr 12, 2016 at 04:59:02PM -0400, Konrad Rzeszutek Wilk wrote:
> The current mechanism is geared towards fast virtual address ->
> symbol names lookup. This is fine for the normal use cases
> (BUG_ON, WARN_ON, etc), but for xSplice - where we need to find
> hypervisor symbols - it is slow.
.. snip..
> Searching for symbols is simplified as we can do a binary search
> on symbol_names_sorted (and using symbols_markers_sorted). Since the
> symbols are sorted it takes on average 13 calls to symbols_expand_symbol.

And there is a bug somewhere. The virtual address that was tied to
'printk' actually ended up being tied to 'printed.21561'!

As such, when reviewing this code be aware there is something I must have 


>  static void write_src(void)
.. snip..
> +             /* Debug data. */
> +             printf(" # %s [idx=%u] [%c]", table[i].symbol, table[i].idx, 
> table[i].type);

This shouldn't be there..

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.