Cast a void * to avoid a warning message; rework overflow handler for perfmon 2.
Cast a void * to avoid a warning message;
rework overflow handler for perfmon 2.

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