perf evlist: Extract perf_mmap__read()
authorWang Nan <wangnan0@huawei.com>
Wed, 27 Apr 2016 02:19:20 +0000 (02:19 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 May 2016 00:04:03 +0000 (21:04 -0300)
commit0f4ccd11813f59d766039dfdd13aa98245a67294
tree94c1b23d7da0458834cafbc5be763c237eb7c5c4
parent0b3c2264ae30ed692fd1ffd2b84c5fbdf737cb0d
perf evlist: Extract perf_mmap__read()

Extract event reader from perf_evlist__mmap_read() to perf__mmap_read().
Future commit will feed it with manually computed 'head' and 'old'
pointers.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1461723563-67451-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c