perf report: Fix stdio event name header printing
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Sep 2011 18:43:04 +0000 (15:43 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Sep 2011 20:10:19 +0000 (17:10 -0300)
commitb53af0f235b6334563c4c9274860f7c5775c07ff
tree1600370be334444d9eb880a06cfea1b16a7c6109
parentf69b64f73e1d7f47a9205c1cd46e0e1c3c65e1cd
perf report: Fix stdio event name header printing

In the past we tried to avoid printing the name of the event when just
one event was found in the perf.data file, after some refactorings it
ended up not printing the event name if just one hist_entry was found in
one of the events.

Fix it by always printing the name of the event, even if just one is
found.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-kikr0c7ou55bd9caok8569rf@git.kernel.org
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c