perf evlist: Choose correct reading direction according to evlist->backward
authorWang Nan <wangnan0@huawei.com>
Wed, 25 May 2016 13:44:50 +0000 (13:44 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 May 2016 15:41:45 +0000 (12:41 -0300)
commit5a5ddeb6e3559675070df6b39ba32a4dd1ab4dd5
treeca0f5a4d7d87164d405c52fb59d9364cf7d38688
parente10e4ef63b54912feffb1dc48ff7d03d931b1647
perf evlist: Choose correct reading direction according to evlist->backward

Now we have evlist->backward to indicate the mmap direction. Make
perf_evlist__mmap_read() choose right direction automatically.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1464183898-174512-3-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h