summaryrefslogtreecommitdiffstats
path: root/mm/debug_page_ref.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2024-07-23 20:49:55 +0200
committerVasily Gorbik <gor@linux.ibm.com>2024-07-31 16:30:20 +0200
commit7e12284c523be33f34d43b2bf8627ab0c8af2388 (patch)
tree504cc1bd23ebef9c3ad684820a42cdebcc1d48b0 /mm/debug_page_ref.c
parent7e4d4cfed6483303436687f1db9a28a377c6ab2a (diff)
downloadlinux-7e12284c523be33f34d43b2bf8627ab0c8af2388.tar.gz
linux-7e12284c523be33f34d43b2bf8627ab0c8af2388.tar.bz2
linux-7e12284c523be33f34d43b2bf8627ab0c8af2388.zip
s390/mm/ptdump: Improve sorting of markers
Use the sort() from lib/sort.c to sort markers instead of the private implementation. The current implementation does not sort markers properly if they have to be moved downwards: ---[ Real Memory Copy Area Start ]--- 0x0000035b903ff000-0x0000035b90400000 4K PTE I ---[ vmalloc Area Start ]--- ---[ Real Memory Copy Area End ]--- Add a new member to each marker which indicates if a marker is start of an area. If addresses of areas are equal consider an address which defines the start of an area higher than the address which defines the end of an area. In result the output is sorted as intended: ---[ Real Memory Copy Area Start ]--- 0x0000019cedcff000-0x0000019cedd00000 4K PTE I ---[ Real Memory Copy Area End ]--- ---[ vmalloc Area Start ]--- Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'mm/debug_page_ref.c')
0 files changed, 0 insertions, 0 deletions