]> git.baikalelectronics.ru Git - kernel.git/commit
perf report/tui: Fix a bug when --fields/sort is given
authorNamhyung Kim <namhyung@kernel.org>
Wed, 16 Apr 2014 02:16:33 +0000 (11:16 +0900)
committerJiri Olsa <jolsa@kernel.org>
Wed, 21 May 2014 09:45:36 +0000 (11:45 +0200)
commit6b9db997c3c149ec914d9866ec302f841efd0b64
treea4e9a4d750720038c7a0bf31183e6ee86384b0c8
parent5bbc99bda36af3c38a6711dd007989c8e4574c13
perf report/tui: Fix a bug when --fields/sort is given

The hists__filter_entries() function is called when down arrow key is
pressed for navigating through the entries in TUI.  It has a check for
filtering out entries that have very small overhead (under min_pcnt).

However it just assumed the entries are sorted by the overhead so when
it saw such a small overheaded entry, it just stopped navigating as an
optimization.  But it's not true anymore due to new --fields and
--sort optoin behavior and this case users cannot go down to a next
entry if ther's an entry with small overhead in-between.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1400480762-22852-14-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/ui/browsers/hists.c