diff options
author | Kan Liang <kan.liang@intel.com> | 2015-09-04 10:58:31 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-09-14 17:50:17 +0200 |
commit | c84974ed9fb672930929e0d20ea3c366635a54aa (patch) | |
tree | ad79e300ef18d2b5eeb6741f8f7302175e898e00 /tools/perf/tests/builtin-test.c | |
parent | perf tools: Switch to tracing_path interface on appropriate places (diff) | |
download | linux-c84974ed9fb672930929e0d20ea3c366635a54aa.tar.xz linux-c84974ed9fb672930929e0d20ea3c366635a54aa.zip |
perf test: Add entry to test cpu topology
This patch test cpu core_id and socket_id which are stored in perf_env.
Commiter note:
# perf test topo
40: Test topology in session: Ok
# perf test -v topo
40: Test topology in session:
--- start ---
test child forked, pid 31767
templ file: /tmp/perf-test-VTZ1PL
CPU 0, core 0, socket 0
CPU 1, core 1, socket 0
CPU 2, core 0, socket 0
CPU 3, core 1, socket 0
test child finished with 0
---- end ----
Test topology in session: Ok
#
Based-on-a-patch-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Kan Liang <kan.liang@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1441357111-64522-1-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/builtin-test.c')
-rw-r--r-- | tools/perf/tests/builtin-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index 69a77f71d594..98b0b2486100 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c @@ -187,6 +187,10 @@ static struct test { #endif #endif { + .desc = "Test topology in session", + .func = test_session_topology, + }, + { .func = NULL, }, }; |