diff options
author | Carsten Emde <C.Emde@osadl.org> | 2011-07-19 14:03:41 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2011-12-28 16:25:27 -0600 |
commit | 908a80ea9db91edaa1689b2c12b2c86f7673234b (patch) | |
tree | 3b57e6c1b5427a3730b1945942d492ef647d79e9 /include/linux/sched.h | |
parent | 140313ef32e2978aab2f5b8442576fe1e0da6491 (diff) |
latency-hist.patch
This patch provides a recording mechanism to store data of potential
sources of system latencies. The recordings separately determine the
latency caused by a delayed timer expiration, by a delayed wakeup of the
related user space program and by the sum of both. The histograms can be
enabled and reset individually. The data are accessible via the debug
filesystem. For details please consult Documentation/trace/histograms.txt.
Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 4ae942137f77..b83f0c0cf92f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1566,6 +1566,12 @@ struct task_struct { unsigned long trace; /* bitmask and counter of trace recursion */ unsigned long trace_recursion; +#ifdef CONFIG_WAKEUP_LATENCY_HIST + u64 preempt_timestamp_hist; +#ifdef CONFIG_MISSED_TIMER_OFFSETS_HIST + unsigned long timer_offset; +#endif +#endif #endif /* CONFIG_TRACING */ #ifdef CONFIG_CGROUP_MEM_RES_CTLR /* memcg uses this to do batch job */ struct memcg_batch_info { |