Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Test kmalloc()/vmalloc() by allocating objects of different sizes.

Proto:static int __init test_kvmalloc(int *total_failures)

Type:int

Parameter:

TypeParameterName
int *total_failures
134  failures = 0 , num_tests = 0
137  When i < 20 cycle
138  size = 1 << i
139  num_tests += Test kmalloc() with given parameters.
140  num_tests += Test vmalloc() with given parameters.
143  REPORT_FAILURES_IN_FN()
144  total_failures += failures
145  Return num_tests
Caller
NameDescribe
test_meminit_initRun the tests. Each test function returns the number of executed tests and* updates |failures| with the number of failed tests.