Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Test kmem_cache allocation by creating caches of different sizes, with and* without constructors, with and without SLAB_TYPESAFE_BY_RCU.

Proto:static int __init test_kmemcache(int *total_failures)

Type:int

Parameter:

TypeParameterName
int *total_failures
350  failures = 0 , num_tests = 0
354  When i < 10 cycle
355  size = 8 << i
356  When flags < 8 cycle
357  ctor = flags & 1
358  rcu = flags & 2
359  zero = flags & 4
360  If ctor & zero Then Continue
365  num_tests += do_kmem_cache_size_bulk(size, & failures)
367  REPORT_FAILURES_IN_FN()
368  total_failures += failures
369  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.