/* ----------------------------------------------------------------------------- * (c) The GHC Team 2006 * * Initialization and use of the PAPI performance monitoring library * * * For adding events or add your processor counters modify * * init_countable_events * papi_report * * ---------------------------------------------------------------------------*/ #ifdef USE_PAPI /* ugly */ #include "Papi.h" #include "Rts.h" #include "RtsUtils.h" #include "Stats.h" #include "RtsFlags.h" struct _papi_events { int event_code; char * event_name; }; #define PAPI_ADD_EVENT(EVENT) \ { \ ASSERT(n_papi_events