comparison VMS.c @ 184:50b29548d4f0

handler interface for counters... not working
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Fri, 13 Jan 2012 15:03:32 +0100
parents 7523ee70d66c
children 69eb54ce9c4b
comparison
equal deleted inserted replaced
87:e4e80ac6ac2c 88:99086e32e4c5
190 #ifdef DETECT_LOOP_GRAPH 190 #ifdef DETECT_LOOP_GRAPH
191 191
192 #endif 192 #endif
193 193
194 #ifdef MEAS__PERF_COUNTERS 194 #ifdef MEAS__PERF_COUNTERS
195 /*
195 _VMSMasterEnv->counter_history = VMS__malloc(10*sizeof(void*)); 196 _VMSMasterEnv->counter_history = VMS__malloc(10*sizeof(void*));
196 _VMSMasterEnv->counter_history_array_info = makePrivDynArrayInfoFrom((void***)&(_VMSMasterEnv->counter_history),10); 197 _VMSMasterEnv->counter_history_array_info = makePrivDynArrayInfoFrom((void***)&(_VMSMasterEnv->counter_history),10);
198 */
197 //printf("Creating HW counters..."); 199 //printf("Creating HW counters...");
200 /*
198 FILE* output; 201 FILE* output;
199 int n; 202 int n;
200 char filename[255]; 203 char filename[255];
201 for(n=0;n<255;n++) 204 for(n=0;n<255;n++)
202 { 205 {
210 } 213 }
211 } 214 }
212 printf("Saving Counter measurements to File: %s ...\n", filename); 215 printf("Saving Counter measurements to File: %s ...\n", filename);
213 output = fopen(filename,"w+"); 216 output = fopen(filename,"w+");
214 _VMSMasterEnv->counteroutput = output; 217 _VMSMasterEnv->counteroutput = output;
218 */
215 219
216 struct perf_event_attr hw_event; 220 struct perf_event_attr hw_event;
217 memset(&hw_event,0,sizeof(hw_event)); 221 memset(&hw_event,0,sizeof(hw_event));
218 hw_event.type = PERF_TYPE_HARDWARE; 222 hw_event.type = PERF_TYPE_HARDWARE;
219 hw_event.size = sizeof(hw_event); 223 hw_event.size = sizeof(hw_event);