perf bench mem: Move boilerplate memory allocation to the infrastructure
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Oct 2016 20:52:18 +0000 (17:52 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 14:07:43 +0000 (11:07 -0300)
commit47b5757bac03c3387ccbe95507917b0f1dd6bb5b
tree3af3ab14d1b03761d6c04210e2a001fdceb26562
parente36b7821a985325dd7074de96deface5c9c6d700
perf bench mem: Move boilerplate memory allocation to the infrastructure

Instead of having all tests perform alloc/free, do it in the code that
calls the do_cycles() and do_gettimeofday() functions.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-lywj4mbdb1m9x1z9asivwuuy@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/mem-functions.c