summaryrefslogtreecommitdiff
path: root/drivers/misc/tegra-profiler/arm_pmu.h
blob: 6071c469fe834ce2b24bbc0fa4520067aa890cd8 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
/*
 * drivers/misc/tegra-profiler/arm_pmu.h
 *
 * Copyright (c) 2014, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 */

#ifndef __ARM_PMU_H
#define __ARM_PMU_H

#include <linux/list.h>

#define QUADD_MAX_PMU_COUNTERS	32

struct quadd_pmu_event_info {
	int quadd_event_id;
	int hw_value;

	struct list_head list;
};

#define QUADD_ARCH_NAME_MAX	64

struct quadd_arch_info {
	int type;
	int ver;

	char name[QUADD_ARCH_NAME_MAX];
};

struct quadd_pmu_ctx {
	struct quadd_arch_info arch;

	u32 counters_mask;

	struct list_head used_events;

	int l1_cache_rw;
	unsigned int *current_map;
};

#endif	/* __ARM_PMU_H */