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/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Cc: [email protected] Fixes: f46b165 ("trace/hwlat: Implement the per-cpu mode") Signed-off-by: Tero Kristo <[email protected]> Acked-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 7a025e0 commit 4c42f5f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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)