diff options
Diffstat (limited to 'lib/event.c')
| -rw-r--r-- | lib/event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/event.c b/lib/event.c index 122d3cd9a1..d3bc0205ae 100644 --- a/lib/event.c +++ b/lib/event.c @@ -1946,6 +1946,7 @@ void event_getrusage(RUSAGE_T *r) void event_call(struct event *thread) { RUSAGE_T before, after; + bool suppress_warnings = EVENT_ARG(thread); /* if the thread being called is the CLI, it may change cputime_enabled * ("service cputime-stats" command), which can result in nonsensical @@ -2006,6 +2007,9 @@ void event_call(struct event *thread) atomic_fetch_or_explicit(&thread->hist->types, 1 << thread->add_type, memory_order_seq_cst); + if (suppress_warnings) + return; + if (cputime_enabled_here && cputime_enabled && cputime_threshold && cputime > cputime_threshold) { /* |
