]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/vm: add script helper for CONFIG_TEST_VMALLOC_MODULE
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Tue, 5 Mar 2019 23:43:37 +0000 (15:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:15 +0000 (21:07 -0800)
commitc555ad9f5b4fceb144be881894926e7e4f0a2f0d
tree652b5ca52563f583db899d42b6adc0199d386e07
parentd4b2c68eee137b5e89939abd3859f1aba1a9517e
selftests/vm: add script helper for CONFIG_TEST_VMALLOC_MODULE

Add the test script for the kernel test driver to analyse vmalloc
allocator for benchmarking and stressing purposes.  It is just a kernel
module loader.  You can specify and pass different parameters in order
to investigate allocations behaviour.  See "usage" output for more
details.

Also add basic vmalloc smoke test to the "run_vmtests" suite.

Link: http://lkml.kernel.org/r/20190103142108.20744-4-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Shuah Khan <shuah@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/run_vmtests
tools/testing/selftests/vm/test_vmalloc.sh [new file with mode: 0644]