summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2024-11-16 04:48:04 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-01-14 09:40:39 +0300
commitf5bd418727856b104d6dcb43b144381c31250383 (patch)
treea245fe6da2d04437bd5e669dc0431d06d1bb075b /tools/perf/scripts/python/stackcollapse.py
parent5f8db8d428807e52c816610e8acea576f856eb6d (diff)
downloadlinux-f5bd418727856b104d6dcb43b144381c31250383.tar.xz
maple_tree: not possible to be a root node after loop
Empty tree and single entry tree is handled else whether, so the maple tree here must be a tree with nodes. If the height is 1 and we found the gap, it will jump to *done* since it is also a leaf. If the height is more than one, and there may be an available range, we will descend the tree, which is not root anymore. If there is no available range, we will set error and return. This means the check for root node here is not necessary. Link: https://lkml.kernel.org/r/20241116014805.11547-3-richard.weiyang@gmail.com Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions