The patch titled Subject: vmalloc: export __vmalloc_node_range for CONFIG_TEST_VMALLOC_MODULE has been added to the -mm tree. Its filename is vmalloc-export-__vmalloc_node_range-for-config_test_vmalloc_module.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/vmalloc-export-__vmalloc_node_range-for-config_test_vmalloc_module.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/vmalloc-export-__vmalloc_node_range-for-config_test_vmalloc_module.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Uladzislau Rezki (Sony)" <urezki@xxxxxxxxx> Subject: vmalloc: export __vmalloc_node_range for CONFIG_TEST_VMALLOC_MODULE Export __vmaloc_node_range() function if CONFIG_TEST_VMALLOC_MODULE is enabled. Some test cases in vmalloc test suite module require and make use of that function. Please note, that it is not supposed to be used for other purposes. We need it only for performance analysis, stressing and stability check of vmalloc allocator. Link: http://lkml.kernel.org/r/20190103142108.20744-2-urezki@xxxxxxxxx Signed-off-by: Uladzislau Rezki (Sony) <urezki@xxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Cc: Oleksiy Avramchenko <oleksiy.avramchenko@xxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/mm/vmalloc.c~vmalloc-export-__vmalloc_node_range-for-config_test_vmalloc_module +++ a/mm/vmalloc.c @@ -1774,6 +1774,15 @@ fail: return NULL; } +/* + * This is only for performance analysis of vmalloc and stress purpose. + * It is required by vmalloc test module, therefore do not use it other + * than that. + */ +#ifdef CONFIG_TEST_VMALLOC_MODULE +EXPORT_SYMBOL_GPL(__vmalloc_node_range); +#endif + /** * __vmalloc_node - allocate virtually contiguous memory * @size: allocation size _ Patches currently in -mm which might be from urezki@xxxxxxxxx are vmalloc-export-__vmalloc_node_range-for-config_test_vmalloc_module.patch vmalloc-add-test-driver-to-analyse-vmalloc-allocator.patch selftests-vm-add-script-helper-for-config_test_vmalloc_module.patch