aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-10-09 15:25:36 -0700
committerLinus Torvalds <[email protected]>2014-10-09 22:25:49 -0400
commit0c255321f879c36bd74f58f9c7ed235ea6b919cb (patch)
tree36492e5b8edf09b1afd0f4a898d6acaa2b948ad9 /tools/perf/scripts/python/event_analyzing_sample.py
parentebb6cdde1a50c3cd2a0a4668dfb571ecb3213449 (diff)
fs/proc/task_mmu.c: simplify m_start() to make it readable
Now that m->version is gone we can cleanup m_start(). In particular, - Remove the "unsigned long" typecast, m->index can't be negative or exceed ->map_count. But lets use "unsigned int pos" to make it clear that "pos < map_count" is safe. - Remove the unnecessary "vma != NULL" check in the main loop. It can't be NULL unless we have a vm bug. - This also means that "pos < map_count" case can simply return the valid vma and avoid "goto" and subsequent checks. 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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions