]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b69b58d08ffcef4be6913dc7e1c9929bdccb014
treebd021ed5888ad9d264418c5d3acba4a3f757d57c
parenta0b8f232629e63917259d2043ffbd445e9de66d9
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