Re: [PATCH v5 4/9] perf, tools, script: Allow sym and dso without ip, addr

From: Arnaldo Carvalho de Melo
Date: Wed Sep 19 2018 - 14:24:30 EST


Em Tue, Sep 18, 2018 at 05:32:09AM -0700, Andi Kleen escreveu:
> This allows to remove a lot of noise in callindent output by
> dropping the numerical addresses, which are not all that useful.
>
> Before
>
> % perf script --itrace=cr -F +callindent
> swapper 0 [000] 156546.354971: 1 branches: pt_config 0 [unknown] ([unknown]) => ffffffff81010486 pt_config ([kernel.kallsyms])
> swapper 0 [000] 156546.354971: 1 branches: pt_config ffffffff81010499 pt_config ([kernel.kallsyms]) => ffffffff8101063e pt_event_add ([kernel.kallsyms])
>
> After
>
> % perf script --itrace=cr -F +callindent,-ip,-sym,-symoff
> swapper 0 [000] 156546.354971: 1 branches: pt_config
> swapper 0 [000] 156546.354971: 1 branches: pt_config

Tested, seems to work as advertised,

Applied,

- Arnaldo