]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2e01c40dc85cf5b3b560f25a7cf8fc16089a016
treebe0ea35e6270e91efe2f8988c8a33deb40f72a8e
parent7d202d2fafa8de5eb5c274c0d1a0638a715710c8
tools/vm/slabinfo: Handle files in debugfs

Commit c3f4b3e8d49ee 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: c3f4b3e8d49ee ("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