summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2023-03-09 12:12:54 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-04-05 19:42:49 -0700
commit9e8a39d2a9772aed7b97b58961e70701bd1d5899 (patch)
treea8bf62ba2d9a6090ad0effce9a367fedb20b13fc /tools/perf/scripts/python/stackcollapse.py
parent5cd70b96debbce9182e903cc6f4ed261ae55fa8b (diff)
downloadlinux-9e8a39d2a9772aed7b97b58961e70701bd1d5899.tar.gz
linux-9e8a39d2a9772aed7b97b58961e70701bd1d5899.zip
mm/mmap/vma_merge: set mid to NULL if not applicable
There are several places where we test if 'mid' is really the area NNNN in the diagram and the tests have two variants and are non-obvious to follow. Instead, set 'mid' to NULL up-front if it's not the NNNN area, and simplify the tests. Also update the description in comment accordingly. [vbabka@suse.cz: adjust/add comments as suggested by Lorenzo] Link: https://lkml.kernel.org/r/def43190-53f7-a607-d1b0-b657565f4288@suse.cz Link: https://lkml.kernel.org/r/20230309111258.24079-7-vbabka@suse.cz Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Lorenzo Stoakes <lstoakes@gmail.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Suren Baghdasaryan <surenb@google.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