]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:04 +0000 (13:34 +0100)
commitf269eaf828f8a28e2f01fe4761ab0a7fe2d9a966
tree7d6a4206cf9032116b8bd208e30a9bc3f40d6f66
parentc9b36b85acae84db22813690864dfc7510b22108
trace/hwlat: Do not wipe the contents of per-cpu thread data

commit 5a4caae5c70a8a234a4f796ce0c01a9925a5aa79 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: 17685413db7ee ("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>
kernel/trace/trace_hwlat.c