aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hrtimer.h
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2016-03-19 08:30:20 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2017-05-26 17:12:39 -0400
commit3ad97ff9c220de06e01f97c795fcee49f206595d (patch)
treec92678a28bf2842917a557e0c0c5d996667546ac /include/linux/hrtimer.h
parent13113c878cbcfdedcf339a20d85c473011937dff (diff)
hrtimer integration: properly trace late-added timers
When tasks add timers that have already expired (e.g., when preempted during schedule_hrtimeout), we should not use the expriration time as the reference time point, but rather the time when the timer was added (the delay then includes activation of ksoftirqd, etc.).
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r--include/linux/hrtimer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index 720063df0ac0..dcbbd65c8af1 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -109,7 +109,7 @@ struct hrtimer {
109 void *start_site; 109 void *start_site;
110 char start_comm[16]; 110 char start_comm[16];
111#endif 111#endif
112#ifdef CONFIG_REPORT_TIMER_LATENCY 112#if defined(CONFIG_REPORT_TIMER_LATENCY) || defined(CONFIG_SCHED_OVERHEAD_TRACE)
113 ktime_t when_added; 113 ktime_t when_added;
114#endif 114#endif
115}; 115};