]> www.infradead.org Git - users/jedix/linux-maple.git/commit
samples: kmemleak: print the raw pointers for debugging purposes
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 6 Feb 2025 11:45:37 +0000 (11:45 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:42 +0000 (21:49 -0800)
commitd1d7e70923f0ec79ec94923f316857097d2a9aca
tree1c00058ea781d2ce4d97844345e50158739989be
parent4f861fab1206429d9df067a46ca96a797c7bfa72
samples: kmemleak: print the raw pointers for debugging purposes

The kmemleak-test.c module is meant to leak some pointers for debugging
the kmemleak detection, pointer information dumping.  It's no use if it
prints the hashed values of such pointers.

Change the printk() format from %p to %px.  While at it, also display the
raw __percpu pointer rather than this_cpu_ptr() since kmemleak now tracks
such pointers independently of the standard allocations.

Link: https://lkml.kernel.org/r/20250206114537.2597764-3-catalin.marinas@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
samples/kmemleak/kmemleak-test.c