Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_meminit.c Create Date:2022-07-28 06:37:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Run the tests. Each test function returns the number of executed tests and* updates |failures| with the number of failed tests.

Proto:static int __init test_meminit_init(void)

Type:int

Parameter:Nothing

393  failures = 0 , num_tests = 0
395  num_tests += Test the page allocator by calling alloc_pages with different orders.
396  num_tests += Test kmalloc()/vmalloc() by allocating objects of different sizes.
397  num_tests += Test kmem_cache allocation by creating caches of different sizes, with and* without constructors, with and without SLAB_TYPESAFE_BY_RCU.
398  num_tests += Test the behavior of SLAB_TYPESAFE_BY_RCU caches of different sizes.
400  If failures == 0 Then pr_info("all %d tests passed!\n", num_tests)
402  Else pr_info("failures: %d out of %d\n", failures, num_tests)
405  Return If failures Then -EINVAL Else 0