Re: [PATCH 5/8] perf, tools: Support source line numbers in annotate

From: Jiri Olsa
Date: Mon Oct 20 2014 - 14:18:20 EST


On Mon, Oct 20, 2014 at 08:06:05PM +0200, Jiri Olsa wrote:

SNIP

> > + if (dl->line_nr && annotate_browser__opts.show_linenr)
> > + printed = scnprintf(bf, sizeof(bf), "%*s %-5d ",
> > + ab->addr_width, " ", dl->line_nr);
> > + else
> > + printed = scnprintf(bf, sizeof(bf), "%*s ",
> > ab->addr_width, " ");
> > slsmg_write_nstring(bf, printed);
> > slsmg_write_nstring(dl->line, width - printed - pcnt_width + 1);
> > @@ -733,6 +738,7 @@ static int annotate_browser__run(struct annotate_browser *browser,
> > "o Toggle disassembler output/simplified view\n"
> > "s Toggle source code view\n"
> > "/ Search string\n"
> > + "k Toggle line numbers\n"
>
> extra tab --------^^^^^^ making the text misaligned in the help box

also by pressing 'k' the current line jumps to
the hottest line, which does not seem right

jirka
--
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/