Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_static_key_init

Proto:static int __init test_static_key_init(void)

Type:int

Parameter:Nothing

114  struct test_key static_key_tests[] = {{init_state = true, key = & ld keys , test_key = & old_true_key_static_key_true, }, {init_state = false, key = & old_false_key, test_key = & old_false_key_static_key_false, }, {init_state = true, key = & key, test_key = & true_key_static_branch_likely, }, {init_state = true, key = & key, test_key = & true_key_static_branch_unlikely, }, {init_state = false, key = & key, test_key = & false_key_static_branch_likely, }, {init_state = false, key = & key, test_key = & false_key_static_branch_unlikely, }, {init_state = true, key = & xternal , test_key = & base_old_true_key_static_key_true, }, {init_state = false, key = & base_inv_old_true_key, test_key = & base_inv_old_true_key_static_key_true, }, {init_state = false, key = & base_old_false_key, test_key = & base_old_false_key_static_key_false, }, {init_state = true, key = & base_inv_old_false_key, test_key = & base_inv_old_false_key_static_key_false, }, {init_state = true, key = & key, test_key = & base_true_key_static_branch_likely, }, {init_state = true, key = & key, test_key = & base_true_key_static_branch_unlikely, }, {init_state = false, key = & key, test_key = & base_inv_true_key_static_branch_likely, }, {init_state = false, key = & key, test_key = & base_inv_true_key_static_branch_unlikely, }, {init_state = false, key = & key, test_key = & base_false_key_static_branch_likely, }, {init_state = false, key = & key, test_key = & base_false_key_static_branch_unlikely, }, {init_state = true, key = & key, test_key = & base_inv_false_key_static_branch_likely, }, {init_state = true, key = & key, test_key = & base_inv_false_key_static_branch_unlikely, }, }
211  size = ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(static_key_tests)
213  ret = verify_keys(static_key_tests, size, false)
214  If ret Then Go to out
217  invert_keys(static_key_tests, size)
218  ret = verify_keys(static_key_tests, size, true)
219  If ret Then Go to out
222  invert_keys(static_key_tests, size)
223  ret = verify_keys(static_key_tests, size, false)
224  If ret Then Go to out
226  Return 0
227  out :
228  Return ret