mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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/[email protected] Signed-off-by: Uladzislau Rezki (Sony) <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Kees Cook <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Oleksiy Avramchenko <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
bc84c53525
commit
153178edc7
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue