]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - gator_events.c
d8372577ae03256dedbab48efcaaf0e7a9896652
[android-sdk/arm-ds5-gator.git] / gator_events.c
1 /**
2  * Copyright (C) ARM Limited 2010-2011. 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);
21 extern int gator_events_net_install(gator_interface *gi);
23 static int gator_events_install(void)
24 {
25         if (gator_event_install(gator_events_armv6_install))
26                 return -1;
27         if (gator_event_install(gator_events_armv7_install))
28                 return -1;
29         if (gator_event_install(gator_events_irq_install))
30                 return -1;
31         if (gator_event_install(gator_events_sched_install))
32                 return -1;
33         if (gator_event_install(gator_events_block_install))
34                 return -1;
35         if (gator_event_install(gator_events_meminfo_install))
36                 return -1;
37         if (gator_event_install(gator_events_net_install))
38                 return -1;
39         return 0;
40 }