perf tools: Fix hist_entry__filter() for hierarchy
authorNamhyung Kim <[email protected]>
Wed, 9 Mar 2016 13:46:56 +0000 (22:46 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
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 <[email protected]>
Tested-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/sort.c