src/components/io/linux-io.c
/** Takes a native event code and passes back the event description
 * @param EventCode is the native event code
 * @param descr is a pointer for the description to be copied to
 * @param len is the size of the descr string
 */
Takes a native event code and passes back the event description
@param EventCode is the native event code
@param descr is a pointer for the description to be copied to
@param len is the size of the descr string
Takes a native event code and passes back the event description @param EventCode is the native event code @param descr is a pointer for the description to be copied to @param len is the size of the descr string
static int
_io_ntv_code_to_descr( unsigned int EventCode, char *descr, int len )
{
    int index;
    index = EventCode;
    if (index >= 0 && index < gEventCount) {
        strncpy( descr, io_native_table[index].desc, len );
        return PAPI_OK;
    }
    return PAPI_ENOEVNT;
}
static int _io_ntv_code_to_descr ( unsigned int EventCode , char * descr , int len ) { int index ; index = EventCode ; if ( index >= 0 && index < gEventCount ) { strncpy ( descr , io_native_table [ index ] . desc , len ) ; return PAPI_OK ; } return PAPI_ENOEVNT ; }
Takes a native event code and passes back the event description
 @param EventCode is the native event code
 @param descr is a pointer for the description to be copied to
 @param len is the size of the descr string
Takes a native event code and passes back the event description @param EventCode is the native event code @param descr is a pointer for the description to be copied to @param len is the size of the descr string
/* make sure event is in range */