Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1420598
| Path | csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Thomas Gleixner <tglx@linutronix.de> |
| Newsgroups | linux.kernel |
| Subject | [patch 10/20] timer: Add a cascading tracepoint |
| Date | Mon, 13 Jun 2016 10:50:01 +0200 |
| Message-ID | <rJvJf-3OU-3@gated-at.bofh.it> (permalink) |
| References | <rJvJf-3OU-5@gated-at.bofh.it> |
| User-Agent | quilt/0.63-1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15 |
| Content-Disposition | inline; filename=timers--Add-a-cascading-tracepoint.patch |
| X-Linutronix-Spam-Score | -1.0 |
| X-Linutronix-Spam-Level | - |
| X-Linutronix-Spam-Status | No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 40 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Ingo Molnar <mingo@kernel.org>, Peter Zijlstra <peterz@infradead.org>, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>, Eric Dumazet <edumazet@google.com>, Frederic Weisbecker <fweisbec@gmail.com>, Chris Mason <clm@fb.com>, Arjan van de Ven <arjan@infradead.org>, rt@linutronix.de |
| X-Original-Date | Mon, 13 Jun 2016 08:40:57 -0000 |
| X-Original-Message-ID | <20160613075929.016861705@linutronix.de> |
| X-Original-References | <20160613070440.950649741@linutronix.de> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1420598 |
Show key headers only | View raw
For analysis of the timer wheel its necessary to trace the cascading. Add a
tracepoint.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: rt@linutronix.de
---
include/trace/events/timer.h | 11 +++++++++++
kernel/time/timer.c | 1 +
2 files changed, 12 insertions(+)
--- a/include/trace/events/timer.h
+++ b/include/trace/events/timer.h
@@ -126,6 +126,17 @@ DEFINE_EVENT(timer_class, timer_cancel,
);
/**
+ * timer_cascade - called when the timer is cascaded
+ * @timer: pointer to struct timer_list
+ */
+DEFINE_EVENT(timer_class, timer_cascade,
+
+ TP_PROTO(struct timer_list *timer),
+
+ TP_ARGS(timer)
+);
+
+/**
* hrtimer_init - called when the hrtimer is initialized
* @hrtimer: pointer to struct hrtimer
* @clockid: the hrtimers clock
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1099,6 +1099,7 @@ static int cascade(struct tvec_base *bas
* don't have to detach them individually.
*/
hlist_for_each_entry_safe(timer, tmp, &tv_list, entry) {
+ trace_timer_cascade(timer);
/* No accounting, while moving them */
__internal_add_timer(base, timer);
}
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[patch 10/20] timer: Add a cascading tracepoint Thomas Gleixner <tglx@linutronix.de> - 2016-06-13 10:50 +0200
csiph-web