aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_kprobe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index fee865d8a7c4..636d45fe69b3 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -845,6 +845,9 @@ __kprobe_trace_func(struct trace_probe *tp, struct pt_regs *regs,
845 845
846 WARN_ON(call != ftrace_file->event_call); 846 WARN_ON(call != ftrace_file->event_call);
847 847
848 if (test_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &ftrace_file->flags))
849 return;
850
848 local_save_flags(irq_flags); 851 local_save_flags(irq_flags);
849 pc = preempt_count(); 852 pc = preempt_count();
850 853
@@ -893,6 +896,9 @@ __kretprobe_trace_func(struct trace_probe *tp, struct kretprobe_instance *ri,
893 896
894 WARN_ON(call != ftrace_file->event_call); 897 WARN_ON(call != ftrace_file->event_call);
895 898
899 if (test_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &ftrace_file->flags))
900 return;
901
896 local_save_flags(irq_flags); 902 local_save_flags(irq_flags);
897 pc = preempt_count(); 903 pc = preempt_count();
898 904