aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKOSAKI Motohiro <[email protected]>2011-07-25 17:12:09 -0700
committerLinus Torvalds <[email protected]>2011-07-25 20:57:08 -0700
commit6c6d5280431544e4036886ea74e3334a98bc5f96 (patch)
tree1362944d254ff1dfa609d84a1e4182a77ce3ca07 /tools/perf/scripts/python
parent4b6ddbf7ed4ef2f40e0a27418146eedaa68953c6 (diff)
pagewalk: don't look up vma if walk->hugetlb_entry is unused
Currently, walk_page_range() calls find_vma() every page table for walk iteration. but it's completely unnecessary if walk->hugetlb_entry is unused. And we don't have to assume find_vma() is a lightweight operation. So this patch checks the walk->hugetlb_entry and avoids the find_vma() call if possible. This patch also makes some cleanups. 1) remove ugly uninitialized_var() and 2) #ifdef in function body. Signed-off-by: KOSAKI Motohiro <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Hiroyuki Kamezawa <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Matt Mackall <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions