1/**
2 * @file load_events_files_tests.c
3 *
4 * @remark Copyright 2003 OProfile authors
5 * @remark Read the file COPYING
6 *
7 * @author John Levon
8 * @author Philippe Elie
9 */
10
11#include <stdlib.h>
12#include <stdio.h>
13
14#include "op_events.h"
15#include "op_cpu_type.h"
16
17int main(void)
18{
19	op_cpu cpu_type;
20
21	setenv("OPROFILE_EVENTS_DIR", OPROFILE_SRCDIR "/events", 1);
22
23	for (cpu_type = CPU_NO_GOOD + 1; cpu_type < MAX_CPU_TYPE; ++cpu_type) {
24		if (cpu_type != CPU_TIMER_INT) {
25			op_events(cpu_type);
26			op_free_events();
27		}
28	}
29
30	return 0;
31}
32