linux-stable/tools/vm
Stéphane Graber 9894717519 tools/vm/slabinfo: Handle files in debugfs
commit 0c7e0d699e upstream.

Commit 64dd68497b 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: 64dd68497b ("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>
2022-08-11 13:07:50 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile tools/vm: fix cross-compile build 2020-04-21 11:11:56 -07:00
page-types.c tools/vm/page-types: remove dependency on opt_file for idle page tracking 2021-09-24 16:13:35 -07:00
page_owner_sort.c tools/vm/page_owner_sort.c: check malloc() return 2021-06-29 10:53:47 -07:00
slabinfo-gnuplot.sh treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
slabinfo.c tools/vm/slabinfo: Handle files in debugfs 2022-08-11 13:07:50 +02:00