X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FPapi.c;fp=rts%2FPapi.c;h=5b4f7852db948d1fb4785101706486e0b283c376;hb=2b522adea22f77a1c03230f5c9865c00bedb5a5b;hp=8ce3cc2381134a8e083961c8af3d038e82218af1;hpb=fe07f054d7ae5e10b14d5fed730fe4424dabd587;p=ghc-hetmet.git diff --git a/rts/Papi.c b/rts/Papi.c index 8ce3cc2..5b4f785 100644 --- a/rts/Papi.c +++ b/rts/Papi.c @@ -1,9 +1,10 @@ - +#ifdef USE_PAPI /* ugly */ #include "Papi.h" #include "Rts.h" #include "RtsUtils.h" #include "Stats.h" +#include "RtsFlags.h" /* These constants specify which events to keep track of. @@ -23,7 +24,13 @@ struct _papi_events { char * event_name; }; -#define PAPI_ADD_EVENT(EVENT) { EVENT, #EVENT } +#define PAPI_ADD_EVENT(EVENT) \ + { \ + ASSERT(n_papi_events