Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'trace-fixes-v3.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull ftrace fix from Steven Rostedt:
"This fixes a long standing bug in the ftrace profiler. The problem is
that the profiler only initializes the online CPUs, and not possible
CPUs. This causes issues if the user takes CPUs online or offline
while the profiler is running.

If we online a CPU after starting the profiler, we lose all the trace
information on the CPU going online.

If we offline a CPU after running a test and start a new test, it will
not clear the old data from that CPU.

This bug causes incorrect data to be reported to the user if they
online or offline CPUs during the profiling"

* tag 'trace-fixes-v3.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
ftrace: Initialize the ftrace profiler for each possible cpu

+1 -1
+1 -1
kernel/trace/ftrace.c
··· 775 775 int cpu; 776 776 int ret = 0; 777 777 778 - for_each_online_cpu(cpu) { 778 + for_each_possible_cpu(cpu) { 779 779 ret = ftrace_profile_init_cpu(cpu); 780 780 if (ret) 781 781 break;