aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Documentation
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2017-11-09 06:55:26 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-11-16 14:49:55 -0300
commit5039c8a28fa97b8dce7b363a5ecd4bee2b87bf03 (patch)
tree74a754dfb5478a463689e80953a4cd8776ef6889 /tools/perf/Documentation
parentperf tools: Document some missing perf.data headers (diff)
downloadlinux-dev-5039c8a28fa97b8dce7b363a5ecd4bee2b87bf03.tar.xz
linux-dev-5039c8a28fa97b8dce7b363a5ecd4bee2b87bf03.zip
perf script: Allow printing period for non freq mode groups
When using leader sampling the values of the not sampled but counted events are shown by perf script in "period". Currently printing period is only allowed when the main event has a period, that is it is in frequency mode. This implies that we cannot dump the values of counted events when the leader event is not in frequency mode. Just remove the check that the period must be set on all events. It will just be printed as 0 instead if it's not available. This fixes the following: $ perf record -c 100000 -e '{cycles,branches}:S' $ perf script -F event,period Further commentary by Jiri Olsa: The period will be the value of configured period, not 0: int perf_evsel__parse_sample(struct ... ... data->period = evsel->attr.sample_period; $ perf record -c 100000 $ perf script -F event,period | head -3 Failed to open /tmp/perf-2048.map, continuing without symbols 100000 cycles:ppp: 100000 cycles:ppp: other than that I think we can remove that check, because we will have always sane number in period Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20171109145528.23371-4-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation')
0 files changed, 0 insertions, 0 deletions