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

2021-02-06 Thread Jin, Yao
Hi Jiri, On 2/5/2021 5:49 PM, Jiri Olsa wrote: On Fri, Jan 29, 2021 at 03:08:54PM +0800, Jin Yao wrote: SNIP + } + } + if (!ret) al->filtered |= (1 << HIST_FILTER__SYMBOL); } diff --git a/tools/perf/util/symbo

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

2021-02-06 Thread Jin, Yao
Hi Jiri, On 2/5/2021 5:49 PM, Jiri Olsa wrote: On Fri, Jan 29, 2021 at 03:08:54PM +0800, Jin Yao wrote: SNIP + } + } + if (!ret) al->filtered |= (1 << HIST_FILTER__SYMBOL); } diff --git a/tools/perf/util/symbo

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

2021-02-05 Thread Jiri Olsa
On Fri, Jan 29, 2021 at 03:08:54PM +0800, Jin Yao wrote: SNIP > + } > + } > + > if (!ret) > al->filtered |= (1 << HIST_FILTER__SYMBOL); > } > diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c > index 64a039cb

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

2021-01-28 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