aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-09-07 19:10:20 -0400
committerArjan van de Ven <arjan@linux.intel.com>2008-09-07 19:10:20 -0400
commit704af52bd13a5d9f3c60c496c68e752fafdfb434 (patch)
tree31ee65210e45b3991a184d3a6dda395a573e97eb
parent4ce105d30e08fb8a1783c55a0e48aa3fa200c455 (diff)
hrtimer: show the timer ranges in /proc/timer_list
to help debugging and visibility of timer ranges, show them in the existing timer list in /proc/timer_list Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
-rw-r--r--kernel/time/timer_list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
index 5224a3215fb7..122ee751d2d1 100644
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -65,8 +65,10 @@ print_timer(struct seq_file *m, struct hrtimer *timer, int idx, u64 now)
65 SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); 65 SEQ_printf(m, ", %s/%d", tmp, timer->start_pid);
66#endif 66#endif
67 SEQ_printf(m, "\n"); 67 SEQ_printf(m, "\n");
68 SEQ_printf(m, " # expires at %Lu nsecs [in %Ld nsecs]\n", 68 SEQ_printf(m, " # expires at %Lu-%Lu nsecs [in %Ld to %Ld nsecs]\n",
69 (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)),
69 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)), 70 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)),
71 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now),
70 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); 72 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now));
71} 73}
72 74