src/components/rocm_smi/linux-rocm-smi.c
// Takes a native event code and passes back the event description
Takes a native event code and passes back the event description
Takes a native event code and passes back the event description
static int _rocm_smi_ntv_code_to_descr(unsigned int EventCode, char *desc, int len)
{
    if (EventCode >=((unsigned int) TotalEvents)) return(PAPI_EINVAL);
    if (desc == NULL || len < 2) return(PAPI_EINVAL);
    strncpy(desc, AllEvents[EventCode].desc, len);
    return (PAPI_OK);
}
static int _rocm_smi_ntv_code_to_descr ( unsigned int EventCode , char * desc , int len ) { if ( EventCode >= ( ( unsigned int ) TotalEvents ) ) return ( PAPI_EINVAL ) ; if ( desc == NULL || len < 2 ) return ( PAPI_EINVAL ) ; strncpy ( desc , AllEvents [ EventCode ] . desc , len ) ; return ( PAPI_OK ) ; }
Takes a native event code and passes back the event description
Takes a native event code and passes back the event description