• S
    tracing: protect reader of cmdline output · 4ca53085
    Steven Rostedt 提交于
    Impact: fix to one cause of incorrect comm outputs in trace
    
    The spinlock only protected the creation of a comm <=> pid pair.
    But it was possible that a reader could look up a pid, and get the
    wrong comm because it had no locking.
    
    This also required changing trace_find_cmdline to copy the comm cache
    and not just send back a pointer to it.
    Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
    4ca53085
trace_functions_graph.c 20.3 KB