diff options
| author | Tero Kristo <[email protected]> | 2023-03-10 12:04:50 +0200 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2023-03-19 12:20:48 -0400 |
| commit | 4c42f5f0d1dd20bddd9f940beb1e6ccad60c4498 (patch) | |
| tree | 9ce9846af0c06e2a84abf1292a5c374dcfed265e /kernel/trace | |
| parent | 7a025e066e0f0afd39cc88a089929ccb945ce9e8 (diff) | |
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: f46b16520a087 ("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]>
Diffstat (limited to 'kernel/trace')
| -rw-r--r-- | kernel/trace/trace_hwlat.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/trace/trace_hwlat.c b/kernel/trace/trace_hwlat.c index d440ddd5fd8b..edc26dc22c3f 100644 --- a/kernel/trace/trace_hwlat.c +++ b/kernel/trace/trace_hwlat.c @@ -584,9 +584,6 @@ static int start_per_cpu_kthreads(struct trace_array *tr) */ cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); - for_each_online_cpu(cpu) - per_cpu(hwlat_per_cpu_data, cpu).kthread = NULL; - for_each_cpu(cpu, current_mask) { retval = start_cpu_kthread(cpu); if (retval) |