Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Test the page allocator by calling alloc_pages with different orders.

Proto:static int __init test_pages(int *total_failures)

Type:int

Parameter:

TypeParameterName
int *total_failures
86  failures = 0 , num_tests = 0
89  When i < 10 cycle num_tests += do_alloc_pages_order(i, & failures)
92  REPORT_FAILURES_IN_FN()
93  total_failures += failures
94  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.