diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-14 12:28:33 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-14 20:31:23 +0100 |
commit | 5d6a27d8a096868ae313f71f563b06074a7e34fe (patch) | |
tree | 0155a8bedea29a6e3eaaa827d1dd2934f68f695b /include/linux/perf_counter.h | |
parent | 8cb391e8786c8072367f0aeb90551903fef074ba (diff) | |
download | linux-stable-5d6a27d8a096868ae313f71f563b06074a7e34fe.tar.gz linux-stable-5d6a27d8a096868ae313f71f563b06074a7e34fe.tar.bz2 linux-stable-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.h | 4 |
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, }; /* |