]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
trace/hwlat: Do not wipe the contents of per-cpu thread data
authorTero Kristo <tero.kristo@linux.intel.com>
Fri, 10 Mar 2023 10:04:50 +0000 (12:04 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:24 +0000 (13:33 +0200)
commit7f5c8e8b61a19ce1e017fadbf636fbac221e5b8b
tree27ba4af9295a8844124749d42be2a14e888ed5af
parentf765e5289cd475be0a9e49069c009c0ad9daf936
trace/hwlat: Do not wipe the contents of per-cpu thread data

BugLink: https://bugs.launchpad.net/bugs/2016876
commit 4c42f5f0d1dd20bddd9f940beb1e6ccad60c4498 upstream.

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: f46b16520a087 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/trace/trace_hwlat.c