diff options
author | Wang Nan <[email protected]> | 2016-04-27 02:19:21 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-05-05 21:04:04 -0300 |
commit | b6b85dad30ad7e7394990e2317a780577974a4e6 (patch) | |
tree | 731d887c8bae23eb0408dcfd2193bc2077f621ee /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 0f4ccd11813f59d766039dfdd13aa98245a67294 (diff) |
perf evlist: Rename variable in perf_mmap__read()
In perf_mmap__read(), give better names to pointers. Original name 'old'
and 'head' directly related to pointers in ring buffer control page. For
backward ring buffer, the meaning of 'head' point is not 'the first byte
of free space', but 'the first byte of the last record'. To reduce
confusion, rename 'old' to 'start', 'head' to 'end'. 'start' -> 'end'
is the direction the records should be read from.
Change parameter order.
Change 'overwrite' to 'check_messup'. When reading from 'head', no need
to check messup for for backward ring buffer.
Signed-off-by: Wang Nan <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions