1a5d0a0ed1c9ac48b29efc908a5de9d7d440a911
1 /**
2 * Copyright (C) ARM Limited 2010. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 */
10 /**
11 * This file is #included in gator_main.c
12 * Update this file and Makefile to add custom counters.
13 */
15 extern int gator_events_armv6_install(gator_interface *gi);
16 extern int gator_events_armv7_install(gator_interface *gi);
17 extern int gator_events_irq_install(gator_interface *gi);
18 extern int gator_events_sched_install(gator_interface *gi);
19 extern int gator_events_block_install(gator_interface *gi);
20 extern int gator_events_meminfo_install(gator_interface *gi);
22 static int gator_events_install(void)
23 {
24 if (gator_event_install(gator_events_armv6_install))
25 return -1;
26 if (gator_event_install(gator_events_armv7_install))
27 return -1;
28 if (gator_event_install(gator_events_irq_install))
29 return -1;
30 if (gator_event_install(gator_events_sched_install))
31 return -1;
32 if (gator_event_install(gator_events_block_install))
33 return -1;
34 if (gator_event_install(gator_events_meminfo_install))
35 return -1;
36 return 0;
37 }