summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2026-09-10 11:35:53 +0930
committerDavid Sterba <dsterba@suse.com>2026-10-12 19:16:21 +0200
commit70fc94d2e0ba38debe47ce6704ca033531a66419 (patch)
tree1a5603a08c5f6245a84f651e1ad779093468b3b0 /tools/perf/scripts/python/stackcollapse.py
parent44edf5160b3479877fb8f76b4ebe72af676138ed (diff)
downloadlinux-70fc94d2e0ba38debe47ce6704ca033531a66419.tar.gz
linux-70fc94d2e0ba38debe47ce6704ca033531a66419.zip
btrfs: simplify heuristic_collect_sample() to handle large folios better
Currently heuristic_collect_sample() is purely page size based, and it has a lot of extra handling just inside the page. However we already have large folio support, there is no need to look up the same folio repeatedly. Simplify the handling by: - Use @cur as the iterator instead of page index - Handle the sample copying on a per-folio basis Although kmap_local_folio() requires an offset to handle HIGHMEM page mapping, we have rejected large folios for HIGHMEM systems completely. So we can safely handle all sample copying inside the folio in one go. - Remove unnecessary unaligned range handling All the range passed in should be block aligned, thus there is no need to handle cases where sample crosses the block boundary. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions