perf mmap: Introduce perf_mmap__read_init()
authorKan Liang <[email protected]>
Thu, 18 Jan 2018 21:26:19 +0000 (13:26 -0800)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 15 Feb 2018 12:52:22 +0000 (09:52 -0300)
commit8872481bd04850b19e053dc579de5a11b83b16fc
tree1ab57d0e91aca3240df33aa3c2ac528df68804f2
parentf92c8cbe597a5a2ccec702dff824f3fe0f3623eb
perf mmap: Introduce perf_mmap__read_init()

The new function perf_mmap__read_init() is factored out from
perf_mmap__push().

It is to calculate the 'start' and 'end' of the available data in
ringbuffer.

No functional change.

Signed-off-by: Kan Liang <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/mmap.c
tools/perf/util/mmap.h