OSDN Git Service

perf mmap: Discard head in overwrite_rb_find_range()
authorYisheng Xie <xieyisheng1@huawei.com>
Tue, 13 Mar 2018 12:31:13 +0000 (20:31 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Mar 2018 19:33:05 +0000 (16:33 -0300)
commit699db111058798bcc9f92a93767062905a561bef
tree0b2615bd90f2d98d7e30df2ad3a8837f8e0bd6ba
parent9749adc3b2a23c91b2eda8758ff0c650d731aa2f
perf mmap: Discard head in overwrite_rb_find_range()

In overwrite mode, start will be set to head in perf_mmap__read_init().
Therefore, there is no need to set the start one more time in
overwrite_rb_find_range() and *start can be used as head instead of
passing head to overwrite_rb_find_range().

Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1520944274-37001-1-git-send-email-xieyisheng1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/mmap.c