summaryrefslogtreecommitdiff
path: root/tools/perf/tests/builtin-test.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-04-25 03:28:14 (GMT)
committerJiri Olsa <jolsa@kernel.org>2014-04-28 11:42:45 (GMT)
commit3c3cfd99c8988e568a5243f38c600a6a03d1b148 (patch)
tree1c89600fdbd31d342ce8cc3cd7df2e0b01ab9e94 /tools/perf/tests/builtin-test.c
parent6e344a952dcfa45b8bfef8eaf8423ab73c5adaf2 (diff)
downloadlinux-3c3cfd99c8988e568a5243f38c600a6a03d1b148.tar.xz
perf tests: Add a test case for hists filtering
Now we have changed how hists stats are accounted especially when filter(s) applied. So add a test case to verify it. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1398396494-12811-2-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/tests/builtin-test.c')
-rw-r--r--tools/perf/tests/builtin-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c
index b11bf8a..ceb9dae 100644
--- a/tools/perf/tests/builtin-test.c
+++ b/tools/perf/tests/builtin-test.c
@@ -124,6 +124,10 @@ static struct test {
#endif
#endif
{
+ .desc = "Test filtering hist entries",
+ .func = test__hists_filter,
+ },
+ {
.func = NULL,
},
};