History

ftrace: Add check of sched_stopped for probe_sched_wakeup

The wakeup tracing in sched_switch does not stop when a user disables tracing. This is because the probe_sched_wakeup() is missing the check to prevent the wakeup from being traced.

Zhaolei committed 17 years ago

Commit 8bcae091 parent 5ac9f621 file · +3 −0Browse files

Unified · Split

kernel/trace/trace_sched_switch.c+3−0
@@ -62,6 +62,9 @@ probe_sched_wakeup(struct rq *__rq, struct task_struct *wakee, int success) · 61 unmodified lines
6262 pc = preempt_count();
6363 tracing_record_cmdline(current);
6464
65+ if (sched_stopped)
66+ return;
67+
6568 local_irq_save(flags);
6669 cpu = raw_smp_processor_id();
6770 data = ctx_trace->data[cpu];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t