From 59a6e9efdd1b75c6e2c4a07bad361b4fa7aa741c 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 8b4b87bf73fd..4cd94206e784 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -116,7 +116,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