summaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorIngo Molnar2008-12-14 12:28:33 +0100
committerIngo Molnar2008-12-14 20:31:23 +0100
commit5d6a27d8a096868ae313f71f563b06074a7e34fe (patch)
tree0155a8bedea29a6e3eaaa827d1dd2934f68f695b /include/linux/perf_counter.h
parentperfcounters: fix task clock counter (diff)
downloadkernel-qcow2-linux-5d6a27d8a096868ae313f71f563b06074a7e34fe.tar.gz
kernel-qcow2-linux-5d6a27d8a096868ae313f71f563b06074a7e34fe.tar.xz
kernel-qcow2-linux-5d6a27d8a096868ae313f71f563b06074a7e34fe.zip
perfcounters: add context switch counter
Impact: add new feature, new sw counter Add a counter that counts the number of context-switches a task is doing. 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, 2 insertions, 2 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index e5d25bf8f74e..d2a16563415f 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -53,8 +53,8 @@ enum hw_event_types {
/*
* Future software events:
*/
- /* PERF_COUNT_PAGE_FAULTS = -3,
- PERF_COUNT_CONTEXT_SWITCHES = -4, */
+ PERF_COUNT_PAGE_FAULTS = -3,
+ PERF_COUNT_CONTEXT_SWITCHES = -4,
};
/*