OSDN Git Service

tracing: stop comm recording on tracing off
authorSteven Rostedt <srostedt@redhat.com>
Tue, 17 Mar 2009 01:57:17 +0000 (21:57 -0400)
committerSteven Rostedt <srostedt@redhat.com>
Tue, 17 Mar 2009 03:31:15 +0000 (23:31 -0400)
commit6adaad14d7d4d3ef31b4e2dc992b18b5da7c4eb3
tree2c1a122a9a13c8b2cae8f0c27368a67e33804deb
parent4ca530852346be239b7c19e7bec5d2b78855bebe
tracing: stop comm recording on tracing off

Impact: fix for losing comms in trace

The command lines of tasks are cached at sched switch to not need
to record them at every trace point.  Disabling the tracing on stops
the recording of traces, but does not stop the caching of command lines.
When the tracing is off the cache may overflow and cause the tracing
to show incorrect tasks matching the PIDs.

This patch disables prevents updates to the comm cache when the ring buffer
is off.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace.c