src/components/sde/tests/Simple2/Simple2_Lib.c
// The following function will _NOT_ be called by other libray functions or normal
// applications. It is a hook for the utility 'papi_native_avail' to be able to
// discover the SDEs that are exported by this library.
The following function will _NOT_ be called by other libray functions or normal
applications. It is a hook for the utility 'papi_native_avail' to be able to
discover the SDEs that are exported by this library.
The following function will _NOT_ be called by other libray functions or normal applications . It is a hook for the utility ' papi_native_avail ' to be able to discover the SDEs that are exported by this library .
papi_handle_t papi_sde_hook_list_events( papi_sde_fptr_struct_t *fptr_struct){
    handle = fptr_struct->init("Simple");
    fptr_struct->register_fp_counter(handle, ev_names[0], PAPI_SDE_RO|PAPI_SDE_INSTANT, PAPI_SDE_double, compute_sde, &comp_value);
    fptr_struct->register_counter(handle, ev_names[1], PAPI_SDE_RO|PAPI_SDE_DELTA,   PAPI_SDE_long_long, &total_iter_cnt);
    fptr_struct->register_counter(handle, ev_names[2], PAPI_SDE_RO|PAPI_SDE_DELTA,   PAPI_SDE_long_long, &low_wtrmrk);
    fptr_struct->register_counter(handle, ev_names[3], PAPI_SDE_RO|PAPI_SDE_DELTA,   PAPI_SDE_long_long, &high_wtrmrk);
    fptr_struct->add_counter_to_group(handle, ev_names[2], "ANY_WATERMARK_REACHED", PAPI_SDE_SUM);
    fptr_struct->add_counter_to_group(handle, ev_names[3], "ANY_WATERMARK_REACHED", PAPI_SDE_SUM);
    fptr_struct->describe_counter(handle, ev_names[0], "Sum of values that are within the watermarks.");
    fptr_struct->describe_counter(handle, ev_names[1], "Total iterations executed by the library.");
    fptr_struct->describe_counter(handle, ev_names[2], "Number of times a value was below the low watermark.");
    fptr_struct->describe_counter(handle, ev_names[3], "Number of times a value was above the high watermark.");
    fptr_struct->describe_counter(handle, "ANY_WATERMARK_REACHED",  "Number of times a value was not between the two watermarks.");
    return handle;
}
papi_handle_t papi_sde_hook_list_events ( papi_sde_fptr_struct_t * fptr_struct ) { handle = fptr_struct -> init ( " " ) ; fptr_struct -> register_fp_counter ( handle , ev_names [ 0 ] , PAPI_SDE_RO | PAPI_SDE_INSTANT , PAPI_SDE_double , compute_sde , & comp_value ) ; fptr_struct -> register_counter ( handle , ev_names [ 1 ] , PAPI_SDE_RO | PAPI_SDE_DELTA , PAPI_SDE_long_long , & total_iter_cnt ) ; fptr_struct -> register_counter ( handle , ev_names [ 2 ] , PAPI_SDE_RO | PAPI_SDE_DELTA , PAPI_SDE_long_long , & low_wtrmrk ) ; fptr_struct -> register_counter ( handle , ev_names [ 3 ] , PAPI_SDE_RO | PAPI_SDE_DELTA , PAPI_SDE_long_long , & high_wtrmrk ) ; fptr_struct -> add_counter_to_group ( handle , ev_names [ 2 ] , " " , PAPI_SDE_SUM ) ; fptr_struct -> add_counter_to_group ( handle , ev_names [ 3 ] , " " , PAPI_SDE_SUM ) ; fptr_struct -> describe_counter ( handle , ev_names [ 0 ] , " " ) ; fptr_struct -> describe_counter ( handle , ev_names [ 1 ] , " " ) ; fptr_struct -> describe_counter ( handle , ev_names [ 2 ] , " " ) ; fptr_struct -> describe_counter ( handle , ev_names [ 3 ] , " " ) ; fptr_struct -> describe_counter ( handle , " " , " " ) ; return handle ; }
The following function will _NOT_ be called by other libray functions or normal
applications.
The following function will _NOT_ be called by other libray functions or normal applications .