]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:53:49 +0000 (10:53 +0200)
commitc3fb7426ff68ae88772206a68ae215a95d5d1442
tree0101a31a9847a36ed842591fc996a4ed15e38ba3
parent0c368a1d7b58f286767925eb4c3b6092541b3994
tools/vm/slabinfo: Handle files in debugfs

BugLink: https://bugs.launchpad.net/bugs/1989221
commit 0c7e0d699ef1430d7f4cf12b4b1d097af58b5515 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/vm/slabinfo.c