perf annotate stdio: Support --show-nr-samples option
authorTaeung Song <treeze.taeung@gmail.com>
Fri, 18 Aug 2017 08:46:48 +0000 (17:46 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 18 Aug 2017 13:31:53 +0000 (10:31 -0300)
commit1ac39372e06f5009982aaaf890fc5bbd044bb047
tree38059befa819af8d01667ef4733a41f117ab91ca
parent9a57eaf1d2443d34cce0562f425228c37a8ec019
perf annotate stdio: Support --show-nr-samples option

Add --show-nr-samples option to "perf annotate" so that it matches "perf
report".

Committer note:

Note that it can't be used together with --show-total-period, which
seems like a silly limitation, that can be lifted at some point.

Made it bail out if not on --stdio.

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1503046008-5511-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-annotate.txt
tools/perf/builtin-annotate.c
tools/perf/util/annotate.c