Skip to content

Commit 4c42f5f

Browse files
Tero Kristorostedt
authored andcommitted
trace/hwlat: Do not wipe the contents of per-cpu thread data
Do not wipe the contents of the per-cpu kthread data when starting the tracer, as this will completely forget about already running instances and can later start new additional per-cpu threads. Link: https://lore.kernel.org/all/20230302113654.2984709-1-tero.kristo@linux.intel.com/ Link: https://lkml.kernel.org/r/20230310100451.3948583-2-tero.kristo@linux.intel.com Cc: stable@vger.kernel.org Fixes: f46b165 ("trace/hwlat: Implement the per-cpu mode") Signed-off-by: Tero Kristo <tero.kristo@linux.intel.com> Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 7a025e0 commit 4c42f5f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

kernel/trace/trace_hwlat.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,6 @@ static int start_per_cpu_kthreads(struct trace_array *tr)
584584
*/
585585
cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask);
586586

587-
for_each_online_cpu(cpu)
588-
per_cpu(hwlat_per_cpu_data, cpu).kthread = NULL;
589-
590587
for_each_cpu(cpu, current_mask) {
591588
retval = start_cpu_kthread(cpu);
592589
if (retval)

0 commit comments

Comments
 (0)