aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorVishal Moola (Oracle) <[email protected]>2024-02-21 15:47:29 -0800
committerAndrew Morton <[email protected]>2024-03-04 17:01:15 -0800
commit0ca22723e3ffe0d539c5d72603dded8fe6924a89 (patch)
tree118d5054febf05a33118797773b914a74133befa /tools/perf/scripts/python/flamegraph.py
parent997f0ecb11da15602a3d34e10f9ca8418db794d0 (diff)
hugetlb: move vm_fault declaration to the top of hugetlb_fault()
hugetlb_fault() currently defines a vm_fault to pass to the generic handle_userfault() function. We can move this definition to the top of hugetlb_fault() so that it can be used throughout the rest of the hugetlb fault path. This will help cleanup a number of excess variables and function arguments throughout the stack. Also, since vm_fault already has space to store the page offset, use that instead and get rid of idx. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Vishal Moola (Oracle) <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions