RFR: 7903740: JMH: Perf event validation not working with skid options [v5]
Galder Zamarreño
galder at openjdk.org
Fri Sep 6 10:42:09 UTC 2024
On Thu, 5 Sep 2024 16:20:43 GMT, Galder Zamarreño <galder at openjdk.org> wrote:
>> Fixes https://bugs.openjdk.org/browse/CODETOOLS-7903740
>
> Galder Zamarreño has updated the pull request incrementally with one additional commit since the last revision:
>
> Check all events with perf report in a single command
Thanks for the comment Ian.
>
> There's a --stats option for perf report, for example:
>
> ```
> $ sudo perf record -e cycles:P -o - true | perf report -i - -- stats
> [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.058 MB - ]
>
> Aggregated stats: TOTAL events: 459 MMAP events: 295 (64.3%) COMM events: 2 ( 0.4%) EXIT events: 1 ( 0.2%) SAMPLE events: 7 ( 1.5%) MMAP2 events: 4 ( 0.9%) KSYMBOL events: 86 (18.7%) BPF_EVENT events: 36 ( 7.8%) ATTR events: 1 ( 0.2%) FINISHED_ROUND events: 1 ( 0.2%) ID_INDEX events: 1 ( 0.2%) THREAD_MAP events: 1 ( 0.2%) CPU_MAP events: 1 ( 0.2%) EVENT_UPDATE events: 1 ( 0.2%) TIME_CONV events: 1 ( 0.2%) FEATURE events: 20 ( 4.4%) FINISHED_INIT events: 1 ( 0.2%) cycles:ppp stats: SAMPLE events: 7 ```
That looks very promising! Just tried on container and seems to do what I'm looking for. I'll amend the PR.
I'll also ~rebase~ merge latest head so that the new runners kick in.
-------------
PR Comment: https://git.openjdk.org/jmh/pull/132#issuecomment-2333771951
PR Comment: https://git.openjdk.org/jmh/pull/132#issuecomment-2333775350
More information about the jmh-dev
mailing list