函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_meminit.c Create Date:2022-07-27 07:35:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Test kmem_cache allocation by creating caches of different sizes, with and* without constructors, with and without SLAB_TYPESAFE_BY_RCU.

函数原型:static int __init test_kmemcache(int *total_failures)

返回类型:int

参数:

类型参数名称
int *total_failures
350  failures等于0, num_tests等于0
354 i小于10循环
355  size等于8左移i
356 flags小于8循环
357  ctor等于flags按位与1
358  rcu等于flags按位与2
359  zero等于flags按位与4
360  如果ctor按位与zero则继续下一循环
365  num_tests加等于do_kmem_cache_size_bulk(size, & failures)
367  REPORT_FAILURES_IN_FN()
368  total_failures加等于failures
369  返回:num_tests
调用者
名称描述
test_meminit_initRun the tests. Each test function returns the number of executed tests and* updates |failures| with the number of failed tests.