Skip to content

Commit

Permalink
tracepoints: dont update zero-sized tracepoint sections
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Mar 18, 2009
1 parent 09933a1 commit ec625cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/tracepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit ec625cb

Please sign in to comment.