X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FPapi.c;h=4d54c726826db91b699c267fbf2a2077985a3ece;hb=f9b4bc220a684a970a58dafa9e57d665d29b4121;hp=d95e26c8e7d09cdcaaea262a5ac77af9ef12bf47;hpb=8db56c8606e6c0e89a87d34c3f67124f1e8b988e;p=ghc-hetmet.git diff --git a/rts/Papi.c b/rts/Papi.c index d95e26c..4d54c72 100644 --- a/rts/Papi.c +++ b/rts/Papi.c @@ -16,12 +16,12 @@ #include -#include "Papi.h" +#include "PosixSource.h" #include "Rts.h" + #include "RtsUtils.h" #include "Stats.h" -#include "RtsFlags.h" -#include "OSThreads.h" +#include "Papi.h" // used to protect the aggregated counters #ifdef THREADED_RTS @@ -180,10 +180,10 @@ init_countable_events(void) static void -papi_report_event(const char *name, ullong value) +papi_report_event(const char *name, StgWord64 value) { static char temp[BIG_STRING_LEN]; - ullong_format_string(value,temp,rtsTrue/*commas*/); + showStgWord64(value,temp,rtsTrue/*commas*/); statsPrintf(" %15s %15s\n", name, temp); }