Skip to content
  • Thomas Gleixner's avatar
    tracing: fix trace_find_cmdline() · 50d88758
    Thomas Gleixner authored
    
    
    Impact: prevent stale command line output
    
    In case there is no valid command line mapping for a pid
    trace_find_cmdline() returns without updating the comm buffer. The
    trace dump keeps the previous entry which results in confusing trace
    output:
    
         <idle>-0     [000]   280.702056 ....
         <idle>-23456 [000]   280.702080 ....
    
    Update the comm buffer with "<...>" when no mapping is found.
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: Steven Rostedt <srostedt@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    50d88758