Skip to content
  • Steven Rostedt's avatar
    tracing: stop comm recording on tracing off · 6adaad14
    Steven Rostedt authored
    
    
    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: default avatarSteven Rostedt <srostedt@redhat.com>
    6adaad14