diff options
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index d2a16563415f..f30486fc55d7 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -42,6 +42,8 @@ enum hw_event_types { | |||
42 | PERF_COUNT_BRANCH_INSTRUCTIONS = 4, | 42 | PERF_COUNT_BRANCH_INSTRUCTIONS = 4, |
43 | PERF_COUNT_BRANCH_MISSES = 5, | 43 | PERF_COUNT_BRANCH_MISSES = 5, |
44 | 44 | ||
45 | PERF_HW_EVENTS_MAX = 6, | ||
46 | |||
45 | /* | 47 | /* |
46 | * Special "software" counters provided by the kernel, even if | 48 | * Special "software" counters provided by the kernel, even if |
47 | * the hardware does not support performance counters. These | 49 | * the hardware does not support performance counters. These |
@@ -50,11 +52,11 @@ enum hw_event_types { | |||
50 | */ | 52 | */ |
51 | PERF_COUNT_CPU_CLOCK = -1, | 53 | PERF_COUNT_CPU_CLOCK = -1, |
52 | PERF_COUNT_TASK_CLOCK = -2, | 54 | PERF_COUNT_TASK_CLOCK = -2, |
53 | /* | ||
54 | * Future software events: | ||
55 | */ | ||
56 | PERF_COUNT_PAGE_FAULTS = -3, | 55 | PERF_COUNT_PAGE_FAULTS = -3, |
57 | PERF_COUNT_CONTEXT_SWITCHES = -4, | 56 | PERF_COUNT_CONTEXT_SWITCHES = -4, |
57 | PERF_COUNT_CPU_MIGRATIONS = -5, | ||
58 | |||
59 | PERF_SW_EVENTS_MIN = -6, | ||
58 | }; | 60 | }; |
59 | 61 | ||
60 | /* | 62 | /* |