perf mmap: Adopt push method from builtin-record.c
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Oct 2017 13:46:01 +0000 (10:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Oct 2017 14:20:54 +0000 (11:20 -0300)
commit73c17d815000e425aea108226bcb57491a04f534
tree34e6d6e57cd2b625cd3cef6d5dd06a36193dde55
parentd37f1586d0023443e2e64937769bbb1bc078866a
perf mmap: Adopt push method from builtin-record.c

The previous prep patch was just to show exactly what changed in that
function, now its time to move that method and things only it uses to
the right place, mmap.[ch]

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
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-aaxywfgw3d44x6xlu8zm1avu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/mmap.c
tools/perf/util/mmap.h