/* GENERATED FILE: DO NOTE EDIT */ #define NUM_GROUPS_[% arch FILTER upper %] [% numGroups %] static PerfmonGroupMap [% arch %]_group_map[NUM_GROUPS_[% arch FILTER upper %]] = { [% FOREACH group IN groups %] {"[% group.name %]",[% group.name %],[% group.isUncore %],"[% group.shortHelp %]","[% group.eventSet %]"}, [% END %] }; /*void perfmon_printDerivedMetrics[% arch FILTER ucfirst %](PerfmonGroup group) { int threadId; double time = rdtscTime; double inverseClock = 1.0 /(double) timer_getCpuClock(); PerfmonResultTable tableData; int numRows; int numColumns = perfmon_numThreads; bstring label; bstrList* fc; double** stat; double tmpValue; uint64_t cpi_instr = 0; uint64_t cpi_cyc = 0; int cpi_index = 0; switch ( group ) { [% FOREACH group IN groups %] case [% group.name %]: numRows = [% group.numRows %]; stat = (double**) malloc(numRows * sizeof(double*)); for (int i=0; i 1) { initStatisticTable(&tableData, fc, numRows); for (int i=0; i