src/components/sde/sde.c
/** This function registers an event name and counter within the SDE component 
  structure attached to the handle. A default description for an event is 
  synthesized from the library name and the event name when they are registered.
  @param[in] handle -- pointer (of opaque type papi_handle_t) to sde structure for an individual library
  @param[in] event_name -- string containing the name of the event 
  @param[in] cntr_type -- the type of the counter (PAPI_SDE_long_long, PAPI_SDE_int, PAPI_SDE_double, PAPI_SDE_float)
  @param[in] cntr_mode -- the mode of the counter (one of: PAPI_SDE_RO, PAPI_SDE_RW and one of: PAPI_SDE_DELTA, PAPI_SDE_INSTANT)
  @param[in] counter -- pointer to a variable that stores the value for the event
  */
This function registers an event name and counter within the SDE component
structure attached to the handle. A default description for an event is
synthesized from the library name and the event name when they are registered.
This function registers an event name and counter within the SDE component structure attached to the handle . A default description for an event is synthesized from the library name and the event name when they are registered .
int 
__attribute__((visibility("default")))
papi_sde_register_counter( papi_handle_t handle, const char *event_name, int cntr_mode, int cntr_type, void *counter )
{
    int ret_val;
    papi_sde_lock();
    ret_val = sde_do_register(handle, event_name, cntr_mode, cntr_type, counter, NULL, NULL);
    papi_sde_unlock();
    return ret_val;
}
int __attribute__ ( ( visibility ( " " ) ) ) papi_sde_register_counter ( papi_handle_t handle , const char * event_name , int cntr_mode , int cntr_type , void * counter ) { int ret_val ; papi_sde_lock ( ) ; ret_val = sde_do_register ( handle , event_name , cntr_mode , cntr_type , counter , NULL , NULL ) ; papi_sde_unlock ( ) ; return ret_val ; }
This function registers an event name and counter within the SDE component
structure attached to the handle.
This function registers an event name and counter within the SDE component structure attached to the handle .