diff options
| author | Josef Bacik <[email protected]> | 2015-03-24 13:57:49 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-03-24 15:10:26 +0000 |
| commit | deab6f55a2fe6fe044af61c9aad6a8e90cda6499 (patch) | |
| tree | 131825bb2a4620b0d06341cca9934c5603244c60 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | perf symbols: Save DSO loading errno to better report errors (diff) | |
| download | kernel-deab6f55a2fe6fe044af61c9aad6a8e90cda6499.tar.gz kernel-deab6f55a2fe6fe044af61c9aad6a8e90cda6499.zip | |
tools lib traceevent: Handle NULL comm name
It is possible that a pid has no associated comm attached to it, although it
can still be passed to pevent_register_comm().
But if comm is NULL, it will cause strdup() to segfault. To prevent this
from happening, if comm is NULL use the default "<...>" name for the
pid.
Signed-off-by: Josef Bacik <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/p/[email protected]
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
