Re: PAPI bug in src/components/perf_event/perf_event.c

2 views
Skip to first unread message

Giuseppe Congiu

unread,
May 19, 2022, 3:06:22 AM5/19/22
to Kaufmann, Steve, perfap...@icl.utk.edu, jag...@icl.utk.edu
Hi Steve,


Thanks,
Giuseppe

On 19 May 2022, at 00:52, Kaufmann, Steve <steven....@hpe.com> wrote:

The "case" statement for "ENOCMP" in _pe_init_component( ) is incorrect.

It should be "ECMP" as this is what is returned by the call to _papi_libpfm4_init( ).

Presently if no default PMU is found the message "Unknown libpfm4 related error" is issued.

It should be "Error libpfm4 no PMUs found"

Note that in the _papi_libpfm4_init( ) function the disable_reason string is set for some errors, only to be reset by the caller. Setting the string in _papi_libpfm4_init( ) is probably not necessary. Or the caller can check if the disable_reason is set and if not formulate the message.

The other "ENOCMP" error conditions in the perf_event.c file are also suspect and should be re-evaluated as they will also trigger a "Unknown libpfm4 related error".

Reply all
Reply to author
Forward
0 new messages