summaryrefslogtreecommitdiff
path: root/Documentation/sysctl
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2016-04-27 02:19:21 (GMT)
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-05-06 00:04:04 (GMT)
commitb6b85dad30ad7e7394990e2317a780577974a4e6 (patch)
tree731d887c8bae23eb0408dcfd2193bc2077f621ee /Documentation/sysctl
parent0f4ccd11813f59d766039dfdd13aa98245a67294 (diff)
downloadlinux-b6b85dad30ad7e7394990e2317a780577974a4e6.tar.xz
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 <wangnan0@huawei.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1461723563-67451-3-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Documentation/sysctl')
0 files changed, 0 insertions, 0 deletions