]> git.baikalelectronics.ru Git - kernel.git/commit
perf report: Correct display of samples and events in header
authorAshay Rane <ashay.rane@tacc.utexas.edu>
Fri, 6 Apr 2012 02:01:01 +0000 (21:01 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 7 Apr 2012 20:29:41 +0000 (17:29 -0300)
commit78772c9e0f1a460829e81002e874d7849ab31a09
treeb21bcd709fdf69d127cb34005d6ec20b2df9fb62
parentd01b5ade84888956e9ed1473239a93303240ae9e
perf report: Correct display of samples and events in header

This patch prints the number of samples and the count of performance
events separately.

This allows comparing performance of different applications with each
other.

Previously, the sample count was displayed against an 'Events:' heading.
With this patch, the header now reads (for example):

Samples: 5K of event 'instructions'
Event count (approx.): 2993026545

The patch covers both the stdio and the browser interface.

Signed-off-by: Ashay Rane <ashay.rane@tacc.utexas.edu>
[ committer note: Fixed wrt ef4d3ec ]
Link: http://lkml.kernel.org/n/tip-h4nfjm8msedlk8gxkzivfh5y@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c
tools/perf/util/ui/browsers/hists.c