summaryrefslogtreecommitdiffstats
path: root/tools/vm/page_owner_sort.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2016-02-25 00:13:38 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-02-24 20:21:10 -0300
commit155e9afff77916931f615a394cef187b342530dc (patch)
tree194a4f1319d513c6e5904b539b53d674928d6725 /tools/vm/page_owner_sort.c
parent54430101d2af260dba2d129cc9d9b7c7e60087b0 (diff)
downloadop-kernel-dev-155e9afff77916931f615a394cef187b342530dc.zip
op-kernel-dev-155e9afff77916931f615a394cef187b342530dc.tar.gz
perf hists: Support filtering in hierarchy mode
The hists__filter_hierarchy() function implements filtering in hierarchy mode. Now we have hist_entry__filter() so use it for entries in the hierarchy. It returns 3 kind of values. A negative value means that it's not filtered by this type. It marks current entry as filtered tentatively so if a lower level entry removes the filter it also removes the all parent so that we can find the entry in the output. Zero means it's filtered out by this type. A positive value means it's not filtered so it removes the filter and shows in the output. In these cases, it moves to next entry since lower level entry won't match by this type of filter anymore. Thus all children will be filtered or not together. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Pekka Enberg <penberg@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/r/1456326830-30456-7-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/vm/page_owner_sort.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud