When writing a counter that has been set up for overflow, add to the desired value the long reset value (overflow frequency). This assumes (and defines) the counter value being passed in as the actual number of counts (zero-based).  This adds symmetry to the _hwd_read() function which already accounts for the long reset value, subtracting it off from the returned pfm_read_pmds() call.
When writing a counter that has been set up for overflow, add to the
desired value the long reset value (overflow frequency). This assumes (and
defines) the counter value being passed in as the actual number of counts
(zero-based).  This adds symmetry to the _hwd_read() function which
already accounts for the long reset value, subtracting it off from the
returned pfm_read_pmds() call.

Leave the _hwd_reset() function as setting it to the long reset value.

arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi