]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Do not stop recording comms if the trace file is being read
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 17 Jun 2021 18:32:34 +0000 (14:32 -0400)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:23 +0000 (08:48 -0400)
commit04e7a7c95027e72bba8973e1c4b9b4a1b29f7a0c
tree77584e252923b71b8f905ec1a309a8fb82b895eb
parentae1fe292b314fbc1db9b1897d1f354c8f2e1931a
tracing: Do not stop recording comms if the trace file is being read

commit 4fdd595e4f9a1ff6d93ec702eaecae451cfc6591 upstream.

A while ago, when the "trace" file was opened, tracing was stopped, and
code was added to stop recording the comms to saved_cmdlines, for mapping
of the pids to the task name.

Code has been added that only records the comm if a trace event occurred,
and there's no reason to not trace it if the trace file is opened.

Cc: stable@vger.kernel.org
Fixes: 7ffbd48d5cab2 ("tracing: Cache comms only after an event occurred")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c