perf tools: Fix hist_entry__filter() for hierarchy
authorNamhyung Kim <namhyung@kernel.org>
Wed, 9 Mar 2016 13:46:56 +0000 (22:46 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Mar 2016 19:45:36 +0000 (16:45 -0300)
commitf4954cfb1cda4cf0abf36d23213c702e94666c3f
treea499753a085083b2b6599ded1aadae8fce74aabe
parente12b202f8fb9b62a3997cad8e93401f85293390c
perf tools: Fix hist_entry__filter() for hierarchy

When hierarchy mode is enabled each output format is in a separate hpp
list.  So when applying a filter it should check all formats in the
list.  Currently it only checks a single ->fmt field which was not set
properly.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1457531222-18130-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.c