load_events_files_tests.c

Go to the documentation of this file.
00001 
00011 #include <stdlib.h>
00012 #include <stdio.h>
00013 
00014 #include "op_events.h"
00015 #include "op_cpu_type.h"
00016 
00017 int main(void)
00018 {
00019     op_cpu cpu_type;
00020 
00021     setenv("OPROFILE_EVENTS_DIR", OPROFILE_SRCDIR "/events", 1);
00022 
00023     for (cpu_type = CPU_NO_GOOD + 1; cpu_type < MAX_CPU_TYPE; ++cpu_type) {
00024         if (cpu_type != CPU_TIMER_INT) {
00025             op_events(cpu_type);
00026             op_free_events();
00027         }
00028     }
00029 
00030     return 0;
00031 }

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1