aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/ftrace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index bbf09c2021b9..4bda044e6c77 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -413,6 +413,10 @@ static inline notrace int ftrace_get_offsets_##call( \
413 * int __data_size; 413 * int __data_size;
414 * int pc; 414 * int pc;
415 * 415 *
416 * if (test_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT,
417 * &ftrace_file->flags))
418 * return;
419 *
416 * local_save_flags(irq_flags); 420 * local_save_flags(irq_flags);
417 * pc = preempt_count(); 421 * pc = preempt_count();
418 * 422 *
@@ -518,6 +522,10 @@ ftrace_raw_event_##call(void *__data, proto) \
518 int __data_size; \ 522 int __data_size; \
519 int pc; \ 523 int pc; \
520 \ 524 \
525 if (test_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, \
526 &ftrace_file->flags)) \
527 return; \
528 \
521 local_save_flags(irq_flags); \ 529 local_save_flags(irq_flags); \
522 pc = preempt_count(); \ 530 pc = preempt_count(); \
523 \ 531 \