[LTP] [PATCH RFC] perf_event_open02: check if PERF_COUNT_HW_INSTRUCTIONS is supported

Jan Stancek jstancek@redhat.com
Wed Mar 20 13:24:37 CET 2019


----- Original Message -----
> Looks good to me.
> 
> Reviewed-by: Michael Holzheu <holzheu@linux.ibm.com>
> 
> Am Tue, 12 Mar 2019 13:32:36 +0800
> schrieb Li Wang <liwang@redhat.com>:
> 
> > The testcase is broken on system with PERF_COUNT_HW_INSTRUCTIONS not
> > supported.
> > Previously, it does the event check in count_hardware_counters, but that
> > has
> > been filtered out on s390 platform via commit 6730475ba5. So now test break
> > as follow:
> >   perf_event_open02    1  TBROK  :  perf_event_open02.c:275:
> >   perf_event_open failed: errno=ENOENT(2): No such file or directory
> >   perf_event_open02    2  TBROK  :  perf_event_open02.c:275: Remaining
> >   cases broken
> > 
> > Signed-off-by: Li Wang <liwang@redhat.com>

Pushed.

Thanks,
Jan


More information about the ltp mailing list