perf mmap: Remove overwrite and check_messup from mmap read
authorWang Nan <wangnan0@huawei.com>
Sun, 3 Dec 2017 02:00:41 +0000 (02:00 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Dec 2017 18:43:54 +0000 (15:43 -0300)
commit8eb7a1fe31612fd3e8ae8042dd2ebaf7575504cb
tree894be1553d77d66d41e4838c89712240059da1b2
parentca6a9a05391960be5e8161a59a9854b32325d901
perf mmap: Remove overwrite and check_messup from mmap read

All perf_mmap__read_forward() read from read-write ring buffer, so no
need check_messup. Reading from backward ring buffer doesn't require
check_messup because it never mess up. Cleanup arguments lists.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Link: http://lkml.kernel.org/r/20171203020044.81680-6-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/mmap.c
tools/perf/util/mmap.h