summaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-11 14:03:20 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-11 15:45:54 +0100
commitbae43c9945ebeef15e7952e317efb02393d3bfc7 (patch)
tree78d12a494fa9c3f73e76e8d7895ceb94d48d517d /include/linux/perf_counter.h
parent01b2838c4298c5e0d30b4993c195ac34dd9df61e (diff)
downloadlinux-stable-bae43c9945ebeef15e7952e317efb02393d3bfc7.tar.gz
linux-stable-bae43c9945ebeef15e7952e317efb02393d3bfc7.tar.bz2
linux-stable-bae43c9945ebeef15e7952e317efb02393d3bfc7.zip
perf counters: implement PERF_COUNT_TASK_CLOCK
Impact: add new perf-counter type The 'task clock' counter counts the amount of time a task is executing, in nanoseconds. It stops ticking when a task is scheduled out either due to it blocking, sleeping or it being preempted. This counter type is a Linux kernel based abstraction, it is available even if the hardware does not support native hardware performance counters. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 68f6e3ad531f..30c0ec8c1ee3 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -50,8 +50,11 @@ enum hw_event_types {
*/
PERF_COUNT_CPU_CLOCK = -1,
PERF_COUNT_TASK_CLOCK = -2,
- PERF_COUNT_PAGE_FAULTS = -3,
- PERF_COUNT_CONTEXT_SWITCHES = -4,
+ /*
+ * Future software events:
+ */
+ /* PERF_COUNT_PAGE_FAULTS = -3,
+ PERF_COUNT_CONTEXT_SWITCHES = -4, */
};
/*