perf tests: Add mem2node object test
authorJiri Olsa <jolsa@kernel.org>
Fri, 9 Mar 2018 10:14:36 +0000 (11:14 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Mar 2018 16:52:48 +0000 (13:52 -0300)
commit8185850ad603acfc66f5b3d284955809dffa5d2c
tree2133a3e62337cbe429efb84f594541218a64e51b
parent4acf6142de3fbc4fc9cc8da0a1aec073f05b724f
perf tests: Add mem2node object test

Adding mem2node object automated test.

The test prepares few artificial nodes - memory maps and verifies the
mem2node object returns proper node values to given addresses.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180309101442.9224-4-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/Build
tools/perf/tests/builtin-test.c
tools/perf/tests/mem2node.c [new file with mode: 0644]
tools/perf/tests/tests.h