summaryrefslogtreecommitdiff
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-03-13 14:21:34 +0300
committerIngo Molnar <mingo@elte.hu>2009-04-06 11:29:40 +0400
commitac17dc8e58f3069ea895cfff963adf98ff3cf6b2 (patch)
treefe07b13dd100fd1f650d8437296f5c6908e9adea /include/linux/perf_counter.h
parent7dd1fcc258b65da718f01e4684a7b9244501a9fb (diff)
downloadlinux-ac17dc8e58f3069ea895cfff963adf98ff3cf6b2.tar.xz
perf_counter: provide major/minor page fault software events
Provide separate sw counters for major and minor page faults. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 3fefc3b8150d..4b14a8e9dbf5 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -49,8 +49,10 @@ enum hw_event_types {
PERF_COUNT_PAGE_FAULTS = -3,
PERF_COUNT_CONTEXT_SWITCHES = -4,
PERF_COUNT_CPU_MIGRATIONS = -5,
+ PERF_COUNT_PAGE_FAULTS_MIN = -6,
+ PERF_COUNT_PAGE_FAULTS_MAJ = -7,
- PERF_SW_EVENTS_MIN = -6,
+ PERF_SW_EVENTS_MIN = -8,
};
/*