tools/vm/slabinfo: Handle files in debugfs
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 23 Jun 2022 21:45:52 +0000 (16:45 -0500)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 4 Jul 2022 15:10:15 +0000 (17:10 +0200)
commit0c7e0d699ef1430d7f4cf12b4b1d097af58b5515
treebe0ea35e6270e91efe2f8988c8a33deb40f72a8e
parentefb9352700ba95f349522689679b7c7949e66245
tools/vm/slabinfo: Handle files in debugfs

Commit 64dd68497be76 relocated and renamed the alloc_calls and
free_calls files from /sys/kernel/slab/NAME/*_calls over to
/sys/kernel/debug/slab/NAME/*_calls but didn't update the slabinfo tool
with the new location.

This change will now have slabinfo look at the new location (and filenames)
with a fallback to the prior files.

Fixes: 64dd68497be76 ("mm: slub: move sysfs slab alloc/free interfaces to debugfs")
Cc: stable@vger.kernel.org
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Tested-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
tools/vm/slabinfo.c