summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/builtin-test.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-04-25 05:28:14 +0200
committerJiri Olsa <jolsa@kernel.org>2014-04-28 13:42:45 +0200
commit3c3cfd99c8988e568a5243f38c600a6a03d1b148 (patch)
tree1c89600fdbd31d342ce8cc3cd7df2e0b01ab9e94 /tools/perf/tests/builtin-test.c
parentperf tests: Factor out fake_setup_machine() (diff)
downloadlinux-3c3cfd99c8988e568a5243f38c600a6a03d1b148.tar.xz
linux-3c3cfd99c8988e568a5243f38c600a6a03d1b148.zip
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 b11bf8a08430..ceb9daebc389 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,
},
};