aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-10-09 15:25:41 -0700
committerLinus Torvalds <[email protected]>2014-10-09 22:25:49 -0400
commitb8c20a9b85b057c850f63ee4c63531a356d8596a (patch)
tree474512d1a811633ea3150dd2bd884d11ed47b5d2 /tools/perf/scripts/python/bin
parentad2a00e4b7e20ab03700b0bb13270b6cee45c6e0 (diff)
fs/proc/task_mmu.c: reintroduce m->version logic
Add the "last_addr" optimization back. Like before, every ->show() method checks !seq_overflow() and sets m->version = vma->vm_start. However, it also checks that m_next_vma(vma) != NULL, otherwise it sets m->version = -1 for the lockless "EOF" fast-path in m_start(). m_start() can simply do find_vma() + m_next_vma() if last_addr is not zero, the code looks clear and simple and this case is clearly separated from "scan vmas" path. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Cyrill Gorcunov <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions