The code2name test was assuming that the native events start right at PAPI_NATIVE_MASK.  We specifically document elsewhere this might not be the case, and indeed for the libpfm4 code this fails.
The code2name test was assuming that the native events start right
at PAPI_NATIVE_MASK.  We specifically document elsewhere this might
not be the case, and indeed for the libpfm4 code this fails.

This fix changes the code to properly enunmerate the native events
for the test.

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