mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
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>
This commit is contained in:
parent
09933a108e
commit
ec625cb29e
1 changed files with 1 additions and 3 deletions
|
@ -278,10 +278,8 @@ tracepoint_update_probe_range(struct tracepoint *begin, struct tracepoint *end)
|
||||||
struct tracepoint *iter;
|
struct tracepoint *iter;
|
||||||
struct tracepoint_entry *mark_entry;
|
struct tracepoint_entry *mark_entry;
|
||||||
|
|
||||||
if (!begin) {
|
if (!begin)
|
||||||
WARN_ON_ONCE(1);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
mutex_lock(&tracepoints_mutex);
|
mutex_lock(&tracepoints_mutex);
|
||||||
for (iter = begin; iter < end; iter++) {
|
for (iter = begin; iter < end; iter++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue