Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\test-ww_mutex.c Create Date:2022-07-28 09:55:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_ww_mutex_init

Proto:static int __init test_ww_mutex_init(void)

Type:int

Parameter:Nothing

583  ncpus = num_online_cpus()
586  wq = alloc_workqueue("test-ww_mutex", WQ_UNBOUND, 0)
587  If Not wq Then Return -ENOMEM
590  ret = test_mutex()
591  If ret Then Return ret
594  ret = test_aa()
595  If ret Then Return ret
598  ret = test_abba(false)
599  If ret Then Return ret
602  ret = test_abba(true)
603  If ret Then Return ret
606  ret = test_cycle(ncpus)
607  If ret Then Return ret
610  ret = stress(16, 2 * ncpus, STRESS_INORDER)
611  If ret Then Return ret
614  ret = stress(16, 2 * ncpus, STRESS_REORDER)
615  If ret Then Return ret
618  ret = stress(4095, returns the hamming weight of a N-bit word(STRESS_ALL) * ncpus, STRESS_ALL)
619  If ret Then Return ret
622  Return 0