src/components/sde/sde.c
/** This function registers an event name and (caller provided) callback function
  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 -- (void *) pointer to sde structure for an individual library.
  @param[in] event_name -- (char *) name of the event.
  @param[in] cntr_mode -- (int) mode of the event counter.
  @param[in] cntr_type -- (int) type of the event counter.
  @param[in] fp_counter -- pointer to a callback function that SDE will call when PAPI_read/stop/accum is called.
  @param[in] param -- (void *) opaque parameter that will be passed to the callback function every time it's called.
  */
This function registers an event name and (caller provided) callback function
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 ( caller provided ) callback function 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_fp_counter( void *handle, const char *event_name, int cntr_mode, int cntr_type, papi_sde_fptr_t fp_counter, void *param )
{
    int ret_val;
    papi_sde_lock();
    ret_val = sde_do_register( handle, event_name, cntr_mode, cntr_type, NULL, fp_counter, param );
    papi_sde_unlock();
    return ret_val;
}
int __attribute__ ( ( visibility ( " " ) ) ) papi_sde_register_fp_counter ( void * handle , const char * event_name , int cntr_mode , int cntr_type , papi_sde_fptr_t fp_counter , void * param ) { int ret_val ; papi_sde_lock ( ) ; ret_val = sde_do_register ( handle , event_name , cntr_mode , cntr_type , NULL , fp_counter , param ) ; papi_sde_unlock ( ) ; return ret_val ; }
This function registers an event name and (caller provided) callback function
within the SDE component structure attached to the handle.
This function registers an event name and ( caller provided ) callback function within the SDE component structure attached to the handle .