Re: [PATCH] perf script: Show hw-cache events
From: Arnaldo Carvalho de Melo
Date: Fri Jun 08 2018 - 12:48:11 EST
Em Fri, Jun 08, 2018 at 04:32:28PM +0530, Seeteena Thoufeek escreveu:
> perf script fails to report hardware cache events (PERF_TYPE_HW_CACHE)
> where as perf report shows the samples. Fix it. Ex,
>
> # perf record -e L1-dcache-loads ./a.out
> [ perf record: Woken up 1 times to write data ]
> [ perf record: Captured and wrote 0.008 MB perf.data (11 samples)]
>
> Before patch:
> # perf script | wc -l
> 0
> After patch:
> # perf script | wc -l
> 11
Thanks, tested and applied.
- Arnaldo