diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-18 14:54:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-18 14:55:00 -0400 |
commit | ec625cb29e66824f7ce41082617aeb93fa4e42e2 (patch) | |
tree | 79bf2052899f9f5125b4054103b542a42b9e49bd /kernel/tracepoint.c | |
parent | 09933a108e6730a464a1ab676c9decc11aee0edc (diff) |
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@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
LKML-Reference: <1237394936.3132.1.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/tracepoint.c')
-rw-r--r-- | kernel/tracepoint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c index adf28734fe2d..1ef5d3a601c7 100644 --- a/kernel/tracepoint.c +++ b/kernel/tracepoint.c | |||
@@ -278,10 +278,8 @@ tracepoint_update_probe_range(struct tracepoint *begin, struct tracepoint *end) | |||
278 | struct tracepoint *iter; | 278 | struct tracepoint *iter; |
279 | struct tracepoint_entry *mark_entry; | 279 | struct tracepoint_entry *mark_entry; |
280 | 280 | ||
281 | if (!begin) { | 281 | if (!begin) |
282 | WARN_ON_ONCE(1); | ||
283 | return; | 282 | return; |
284 | } | ||
285 | 283 | ||
286 | mutex_lock(&tracepoints_mutex); | 284 | mutex_lock(&tracepoints_mutex); |
287 | for (iter = begin; iter < end; iter++) { | 285 | for (iter = begin; iter < end; iter++) { |