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

Showing the changes to kernel/trace (1 of 1 file). Show all

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
62 pc = preempt_count();62 pc = preempt_count();
63 tracing_record_cmdline(current);63 tracing_record_cmdline(current);
64 64
65 if (sched_stopped)
66 return;
67
65 local_irq_save(flags);68 local_irq_save(flags);
66 cpu = raw_smp_processor_id();69 cpu = raw_smp_processor_id();
67 data = ctx_trace->data[cpu];70 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