Re: [PATCH 1/2] perf script: Support filtering by hex address

2021-01-28 Thread Jin, Yao
On 1/28/2021 8:43 PM, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 28, 2021 at 11:31:26AM +0800, Jin, Yao escreveu: On 1/28/2021 7:13 AM, Jiri Olsa wrote: @@ -709,6 +725,26 @@ int machine__resolve(struct machine *machine, struct addr_location *al, ret = strlist__has_e

Re: [PATCH 1/2] perf script: Support filtering by hex address

2021-01-28 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 28, 2021 at 11:31:26AM +0800, Jin, Yao escreveu: > On 1/28/2021 7:13 AM, Jiri Olsa wrote: > > > @@ -709,6 +725,26 @@ int machine__resolve(struct machine *machine, struct > > > addr_location *al, > > > ret = strlist__has_entry(symbol_conf.sym_list, > > > al_ad

Re: [PATCH 1/2] perf script: Support filtering by hex address

2021-01-27 Thread Jin, Yao
Hi Jiri, On 1/28/2021 7:13 AM, Jiri Olsa wrote: @@ -709,6 +725,26 @@ int machine__resolve(struct machine *machine, struct addr_location *al, ret = strlist__has_entry(symbol_conf.sym_list, al_addr_str); } +

Re: [PATCH 1/2] perf script: Support filtering by hex address

2021-01-27 Thread Jiri Olsa
On Mon, Jan 25, 2021 at 07:27:49AM +0800, Jin Yao wrote: SNIP > perf script --symbols=noploop,0x4007a0 > > + Support filtering trace records by symbol name, start address of > + symbol, any hexadecimal address and address range. > + > + The comparison order is: > + 1. symb

[PATCH 1/2] perf script: Support filtering by hex address

2021-01-24 Thread Jin Yao
Perf-script supports '-S' or '--symbol' options to only list the trace records in given symbols. Symbol is typically a name or hex address. If it's hex address, it is the start address of one symbol. While it would be useful if we can filter trace records by any hex address (not only the start add