# HG changeset patch # User Nina Engelhardt # Date 1336496393 -7200 # Node ID 52a02c918db878ed86f9a17f826d05b88d12b96d # Parent b73e4a6f349749a22ff7058d82f63d08a28e6427 add cache miss counter diff -r b73e4a6f3497 -r 52a02c918db8 SSR_Counter_Recording.c --- a/SSR_Counter_Recording.c Tue Apr 17 20:14:34 2012 +0200 +++ b/SSR_Counter_Recording.c Tue May 08 18:59:53 2012 +0200 @@ -28,7 +28,7 @@ list->next_free_index++; } -void SSR__counter_handler(int evt_type, int vpid, int task, SlaveVP* pr, uint64 cycles, uint64 instrs) +void SSR__counter_handler(int evt_type, int vpid, int task, SlaveVP* pr, uint64 cycles, uint64 instrs, uint64 cachem) { if (pr->typeOfVP == Master || pr->typeOfVP == Shutdown) @@ -45,6 +45,7 @@ e.cycles = cycles; e.instrs = instrs; + e.cachem = cachem; if(pr){ e.coreID = pr->coreAnimatedBy; @@ -112,7 +113,7 @@ default: fprintf(counterfile, "unknown event"); } - fprintf(counterfile,", %d, %d, %llu, %llu",e->vp,e->task,e->cycles,e->instrs); + fprintf(counterfile,", %d, %d, %llu, %llu, %llu",e->vp,e->task,e->cycles,e->instrs,e->cachem); if(e->coreID >=0) fprintf(counterfile,", %d",e->coreID); fprintf(counterfile,"\n"); diff -r b73e4a6f3497 -r 52a02c918db8 SSR_Counter_Recording.h --- a/SSR_Counter_Recording.h Tue Apr 17 20:14:34 2012 +0200 +++ b/SSR_Counter_Recording.h Tue May 08 18:59:53 2012 +0200 @@ -18,13 +18,14 @@ int task; uint64 cycles; uint64 instrs; + uint64 cachem; } CounterEvent; FILE* counterfile; void SSR__init_counter_data_structs(); -void SSR__counter_handler(int evt_type, int vpid, int task, SlaveVP* pr, uint64 cycles, uint64 instrs); +void SSR__counter_handler(int evt_type, int vpid, int task, SlaveVP* pr, uint64 cycles, uint64 instrs, uint64 cachem); void set_counter_file(FILE* f);