]> git.baikalelectronics.ru Git - kernel.git/commit
perf top: Decay all events in the evlist
authorNamhyung Kim <namhyung@kernel.org>
Tue, 27 Aug 2019 23:15:54 +0000 (08:15 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Aug 2019 21:15:03 +0000 (18:15 -0300)
commite0bad50232ad28a66270b726ec29ef52b090056e
tree7f0a20022dff17b1acf7a49e860660550fc30142
parent01818b8b6e86de39234b2cb7c1c9bae8b47a53d9
perf top: Decay all events in the evlist

Currently perf top only decays entries in a selected evsel.  I don't
know whether it's intended (maybe due to performance reason?) but anyway
it might show incorrect output when event group is used since users will
see leader event is decayed but others are not.

This patch moves the decay code into perf_top__resort_hists() so that
stdio and TUI code shared the logic.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190827231555.121411-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c