[PATCH v3 03/11] perf record: Rename variable to make code clear

2016-05-23 Thread Wang Nan
record__mmap_read() write data from ring buffer into perf.data. 'head' is maintained by kernel, points to the last writtend record. 'old' is maintained by perf, points to the record read in previous round. record__mmap_read() saves data from 'old' to 'head' to perf.data. The names of these

[PATCH v3 03/11] perf record: Rename variable to make code clear

2016-05-23 Thread Wang Nan
record__mmap_read() write data from ring buffer into perf.data. 'head' is maintained by kernel, points to the last writtend record. 'old' is maintained by perf, points to the record read in previous round. record__mmap_read() saves data from 'old' to 'head' to perf.data. The names of these