mm: page_frag: add a test module for page_frag
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 28 Oct 2024 11:53:36 +0000 (19:53 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Nov 2024 18:56:26 +0000 (10:56 -0800)
commit7fef0dec415c08c16c31dd2c2501a8c734a4b3b8
tree1fb57c25c62f1ea5dd5ffa236b12bb3c01fd1681
parenta885a6b2d37eaaae08323583bdb1928c8a2935fc
mm: page_frag: add a test module for page_frag

The testing is done by ensuring that the fragment allocated
from a frag_frag_cache instance is pushed into a ptr_ring
instance in a kthread binded to a specified cpu, and a kthread
binded to a specified cpu will pop the fragment from the
ptr_ring and free the fragment.

CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux-MM <linux-mm@kvack.org>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Link: https://patch.msgid.link/20241028115343.3405838-2-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/mm/Makefile
tools/testing/selftests/mm/page_frag/Makefile [new file with mode: 0644]
tools/testing/selftests/mm/page_frag/page_frag_test.c [new file with mode: 0644]
tools/testing/selftests/mm/run_vmtests.sh
tools/testing/selftests/mm/test_page_frag.sh [new file with mode: 0755]