src/components/rocm_smi/linux-rocm-smi.c
// rsmi_dev_firmware_version_get is an enum with 21 settings; each will be a separate event.
rsmi_dev_firmware_version_get is an enum with 21 settings; each will be a separate event.
rsmi_dev_firmware_version_get is an enum with 21 settings ; each will be a separate event .
static int er_firmware_version(int myIdx)
{
    uint64_t* data = (uint64_t*) AllEvents[myIdx].vptr;     
    AllEvents[myIdx].value = 0;                             
    RSMI(rsmi_dev_firmware_version_get,                     
        (AllEvents[myIdx].device,                           
         AllEvents[myIdx].variant, data),                   
        return(PAPI_EMISC));                                
    AllEvents[myIdx].value = data[0];                       
    return(PAPI_OK);                                        
}
static int er_firmware_version ( int myIdx ) { uint64_t * data = ( uint64_t * ) AllEvents [ myIdx ] . vptr ; AllEvents [ myIdx ] . value = 0 ; RSMI ( rsmi_dev_firmware_version_get , ( AllEvents [ myIdx ] . device , AllEvents [ myIdx ] . variant , data ) , return ( PAPI_EMISC ) ) ; AllEvents [ myIdx ] . value = data [ 0 ] ; return ( PAPI_OK ) ; }
rsmi_dev_firmware_version_get is an enum with 21 settings; each will be a separate event.
rsmi_dev_firmware_version_get is an enum with 21 settings ; each will be a separate event .
// get a shortcut. // Default if error. // Routine name. // Device, // firmware block ID, and pointer for storage of read. // Error handler. // Copy/convert the returned value. // Done.