]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tracepoints: dont update zero-sized tracepoint sections
authorIngo Molnar <mingo@elte.hu>
Wed, 18 Mar 2009 18:54:04 +0000 (19:54 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 18 Mar 2009 18:55:00 +0000 (19:55 +0100)
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>
kernel/tracepoint.c

index adf28734fe2d2171ea28f314e7dc76b8b75904b6..1ef5d3a601c768822b44504d3a5abbf861b20178 100644 (file)
@@ -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++) {