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)
commitea4385f804eadce3f4fd8698d4ffd9e85fb6d5e0
tree7f0a20022dff17b1acf7a49e860660550fc30142
parent630aec1a7fd60ac355d5f2d67b5454912c5971a6
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