src/components/pcp/linux-pcp.c
//----------------------------------------------------------------------------
// The control_state is our internal description of an event set. 
//----------------------------------------------------------------------------
The control_state is our internal description of an event set.
The control_state is our internal description of an event set .
static int _pcp_init_control_state( hwd_control_state_t *ctl)
{
   mRtnCnt(_pcp_init_control_state);                                    
    _pcp_control_state_t* control = ( _pcp_control_state_t* ) ctl;
    memset(control, 0, sizeof(_pcp_control_state_t));                   
    return PAPI_OK;
}
static int _pcp_init_control_state ( hwd_control_state_t * ctl ) { mRtnCnt ( _pcp_init_control_state ) ; _pcp_control_state_t * control = ( _pcp_control_state_t * ) ctl ; memset ( control , 0 , sizeof ( _pcp_control_state_t ) ) ; return PAPI_OK ; }
The control_state is our internal description of an event set.
The control_state is our internal description of an event set .
// count this function. // contents: _pcp_control_state state at this writing:  // contents of state:  // int numEvents;                                                    // The number of events we have. // int maxAllocated;                                                 // the current entries in pcpIndex. // int *pcpIndex;                                                    // array of indices into pcp_event_info[]. // long long *values;                                                // Values read from our PCP events. // zero it.