From 3ad97ff9c220de06e01f97c795fcee49f206595d Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Sat, 19 Mar 2016 13:30:20 +0100 Subject: 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.). --- include/linux/hrtimer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux/hrtimer.h') 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 { void *start_site; char start_comm[16]; #endif -#ifdef CONFIG_REPORT_TIMER_LATENCY +#if defined(CONFIG_REPORT_TIMER_LATENCY) || defined(CONFIG_SCHED_OVERHEAD_TRACE) ktime_t when_added; #endif }; -- cgit v1.2.2