Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1460810 > unrolled thread

[PATCH v2] timekeeping: Prints the amounts of time spent during suspend

Started byRuchi Kandoi <kandoiruchi@google.com>
First post2016-08-11 23:40 +0200
Last post2016-08-17 22:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] timekeeping: Prints the amounts of time spent during suspend Ruchi Kandoi <kandoiruchi@google.com> - 2016-08-11 23:40 +0200
    Re: [PATCH v2] timekeeping: Prints the amounts of time spent during suspend John Stultz <john.stultz@linaro.org> - 2016-08-17 22:20 +0200

#1460810 — [PATCH v2] timekeeping: Prints the amounts of time spent during suspend

FromRuchi Kandoi <kandoiruchi@google.com>
Date2016-08-11 23:40 +0200
Subject[PATCH v2] timekeeping: Prints the amounts of time spent during suspend
Message-ID<s55RM-X3-15@gated-at.bofh.it>
This helps to keep track of real time while debugging using kernel logs.

Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
---
Changelog since v1:
- removed cross platform warnings.

 kernel/time/timekeeping_debug.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/time/timekeeping_debug.c b/kernel/time/timekeeping_debug.c
index f6bd652..7fdb34f 100644
--- a/kernel/time/timekeeping_debug.c
+++ b/kernel/time/timekeeping_debug.c
@@ -70,5 +70,7 @@ late_initcall(tk_debug_sleep_time_init);
 void tk_debug_account_sleep_time(struct timespec64 *t)
 {
 	sleep_time_bin[fls(t->tv_sec)]++;
+	pr_info("Suspended for %lld.%03lu seconds\n", (s64)t->tv_sec,
+			t->tv_nsec / NSEC_PER_MSEC);
 }
 
-- 
2.8.0.rc3.226.g39d4020

[toc] | [next] | [standalone]


#1464780

FromJohn Stultz <john.stultz@linaro.org>
Date2016-08-17 22:20 +0200
Message-ID<s7ftE-5TG-15@gated-at.bofh.it>
In reply to#1460810
On Thu, Aug 11, 2016 at 2:35 PM, Ruchi Kandoi <kandoiruchi@google.com> wrote:
> This helps to keep track of real time while debugging using kernel logs.
>
> Cc: John Stultz <john.stultz@linaro.org>
> Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
> ---
> Changelog since v1:
> - removed cross platform warnings.

Queued for testing, targeting 4.9.

thanks
-john

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web