perf tools: Don't use parent comm if not set at fork time
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 20 Feb 2010 01:02:07 +0000 (23:02 -0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 21 Feb 2010 16:48:24 +0000 (17:48 +0100)
commitfaa5c5c36ec50bf43e39c7798ce9701e6b002db3
treebd021ed5888ad9d264418c5d3acba4a3f757d57c
parent10fe12ef631a7e85022ed26304a37f033a6a95b8
perf tools: Don't use parent comm if not set at fork time

As the parent comm then is worthless, confusing users about the
thread where the sample really happened, leading to think that
the sample happened in the parent, not where it really happened,
in the children of a thread for which a PERF_RECORD_COMM event
was not received.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1266627727-19715-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/thread.c
tools/perf/util/thread.h