Go to the documentation of this file.
5 #ifndef __ALPHA_WRPERFMON_H
6 #define __ALPHA_WRPERFMON_H
9 #define PERFMON_CMD_DISABLE 0
10 #define PERFMON_CMD_ENABLE 1
11 #define PERFMON_CMD_DESIRED_EVENTS 2
12 #define PERFMON_CMD_LOGGING_OPTIONS 3
14 #define PERFMON_CMD_INT_FREQ 4
15 #define PERFMON_CMD_ENABLE_CLEAR 7
17 #define PERFMON_CMD_READ 5
18 #define PERFMON_CMD_WRITE 6
20 #define PERFMON_CMD_ENABLE_WRITE 7
22 #define PERFMON_CMD_I_STAT 8
23 #define PERFMON_CMD_PMPC 9
27 #define EV5_PCTR_0 (1UL<<0)
28 #define EV5_PCTR_1 (1UL<<1)
29 #define EV5_PCTR_2 (1UL<<2)
31 #define EV5_PCTR_0_COUNT_SHIFT 48
32 #define EV5_PCTR_1_COUNT_SHIFT 32
33 #define EV5_PCTR_2_COUNT_SHIFT 16
35 #define EV5_PCTR_0_COUNT_MASK 0xffffUL
36 #define EV5_PCTR_1_COUNT_MASK 0xffffUL
37 #define EV5_PCTR_2_COUNT_MASK 0x3fffUL
40 #define EV6_PCTR_0 (1UL<<0)
41 #define EV6_PCTR_1 (1UL<<1)
43 #define EV6_PCTR_0_COUNT_SHIFT 28
44 #define EV6_PCTR_1_COUNT_SHIFT 6
46 #define EV6_PCTR_0_COUNT_MASK 0xfffffUL
47 #define EV6_PCTR_1_COUNT_MASK 0xfffffUL
50 #define EV67_PCTR_0 (1UL<<0)
51 #define EV67_PCTR_1 (1UL<<1)
53 #define EV67_PCTR_0_COUNT_SHIFT 28
54 #define EV67_PCTR_1_COUNT_SHIFT 6
56 #define EV67_PCTR_0_COUNT_MASK 0xfffffUL
57 #define EV67_PCTR_1_COUNT_MASK 0xfffffUL
65 #define EV6_PCTR_0_EVENT_MASK 0x10UL
66 #define EV6_PCTR_1_EVENT_MASK 0x0fUL
69 #define EV6_PCTR_0_CYCLES (0UL << 4)
70 #define EV6_PCTR_0_INSTRUCTIONS (1UL << 4)
72 #define EV6_PCTR_1_CYCLES 0
73 #define EV6_PCTR_1_BRANCHES 1
74 #define EV6_PCTR_1_BRANCH_MISPREDICTS 2
75 #define EV6_PCTR_1_DTB_SINGLE_MISSES 3
76 #define EV6_PCTR_1_DTB_DOUBLE_MISSES 4
77 #define EV6_PCTR_1_ITB_MISSES 5
78 #define EV6_PCTR_1_UNALIGNED_TRAPS 6
79 #define EV6_PCTR_1_REPLY_TRAPS 7
82 #define EV67_PCTR_MODE_MASK 0x10UL
83 #define EV67_PCTR_EVENT_MASK 0x0CUL
85 #define EV67_PCTR_MODE_PROFILEME (1UL<<4)
86 #define EV67_PCTR_MODE_AGGREGATE (0UL<<4)
88 #define EV67_PCTR_INSTR_CYCLES (0UL<<2)
89 #define EV67_PCTR_CYCLES_UNDEF (1UL<<2)
90 #define EV67_PCTR_INSTR_BCACHEMISS (2UL<<2)
91 #define EV67_PCTR_CYCLES_MBOX (3UL<<2)