summaryrefslogtreecommitdiffstats
blob: d8372577ae03256dedbab48efcaaf0e7a9896652 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * Copyright (C) ARM Limited 2010-2011. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 */

/**
 * This file is #included in gator_main.c
 *  Update this file and Makefile to add custom counters.
 */

extern int gator_events_armv6_install(gator_interface *gi);
extern int gator_events_armv7_install(gator_interface *gi);
extern int gator_events_irq_install(gator_interface *gi);
extern int gator_events_sched_install(gator_interface *gi);
extern int gator_events_block_install(gator_interface *gi);
extern int gator_events_meminfo_install(gator_interface *gi);
extern int gator_events_net_install(gator_interface *gi);

static int gator_events_install(void)
{
	if (gator_event_install(gator_events_armv6_install))
		return -1;
	if (gator_event_install(gator_events_armv7_install))
		return -1;
	if (gator_event_install(gator_events_irq_install))
		return -1;
	if (gator_event_install(gator_events_sched_install))
		return -1;
	if (gator_event_install(gator_events_block_install))
		return -1;
	if (gator_event_install(gator_events_meminfo_install))
		return -1;
	if (gator_event_install(gator_events_net_install))
		return -1;
	return 0;
}