Re: [PATCH V4 4/6] perf script: Add support for PERF_SAMPLE_CODE_PAGE_SIZE

From: Liang, Kan
Date: Mon Jan 18 2021 - 08:43:47 EST

On 1/15/2021 2:25 PM, Arnaldo Carvalho de Melo wrote:
Em Tue, Jan 05, 2021 at 11:57:50AM -0800,kan.liang@xxxxxxxxxxxxxxx escreveu:
From: Stephane Eranian<eranian@xxxxxxxxxx>

Display sampled code page sizes when PERF_SAMPLE_CODE_PAGE_SIZE was set.

For example,
perf script --fields comm,event,ip,code_page_size
dtlb mem-loads:uP: 445777 4K
dtlb mem-loads:uP: 40f724 4K
dtlb mem-loads:uP: 474926 4K
dtlb mem-loads:uP: 401075 4K
dtlb mem-loads:uP: 401095 4K
dtlb mem-loads:uP: 401095 4K
dtlb mem-loads:uP: 4010cc 4K
dtlb mem-loads:uP: 440b6f 4K

Acked-by: Namhyung Kim<namhyung@xxxxxxxxxx>
Acked-by: Jiri Olsa<jolsa@xxxxxxxxxx>
Signed-off-by: Stephane Eranian<eranian@xxxxxxxxxx>
You missed your Signed-off-by, I'm adding it, please ack this change.

The patch 4 and 5 are from Stephane. I only made minor changes so that the code can be rebased to the latest perf/core branch (c07b45a355ee).

May add a tag as below.

[kan.liang@xxxxxxxxxxxxxxx: Rebase on top of acme's perf/core branch commit c07b45a355ee]
Signed-off-by: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>