[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-ec625cb29e66824f7ce41082617aeb93fa4e42e2@git.kernel.org>
Date: Wed, 18 Mar 2009 18:57:28 GMT
From: Ingo Molnar <mingo@...e.hu>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
jaswinderrajput@...il.com, fweisbec@...il.com, rostedt@...dmis.org,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:tracing/ftrace] tracepoints: dont update zero-sized tracepoint sections
Commit-ID: ec625cb29e66824f7ce41082617aeb93fa4e42e2
Gitweb: http://git.kernel.org/tip/ec625cb29e66824f7ce41082617aeb93fa4e42e2
Author: Ingo Molnar <mingo@...e.hu>
AuthorDate: Wed, 18 Mar 2009 19:54:04 +0100
Commit: Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 18 Mar 2009 19:55:00 +0100
tracepoints: dont update zero-sized tracepoint sections
Zero-sized tracepoint sections can occur if tracing is enabled but
no tracepoint is defined. Do not emit a warning in that case.
Cc: Frederic Weisbecker <fweisbec@...il.com>
Cc: Steven Rostedt <rostedt@...dmis.org>
Cc: Jaswinder Singh Rajput <jaswinderrajput@...il.com>
LKML-Reference: <1237394936.3132.1.camel@...alhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/tracepoint.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index adf2873..1ef5d3a 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -278,10 +278,8 @@ tracepoint_update_probe_range(struct tracepoint *begin, struct tracepoint *end)
struct tracepoint *iter;
struct tracepoint_entry *mark_entry;
- if (!begin) {
- WARN_ON_ONCE(1);
+ if (!begin)
return;
- }
mutex_lock(&tracepoints_mutex);
for (iter = begin; iter < end; iter++) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists