Function report | 
Source Code:lib\locking-selftest.c | 
Create Date:2022-07-28 06:53:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:dotest
Proto:static void dotest(void (*testcase_fn)(void ), int expected, int lockclass_mask)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| void (* | testcase_fn | |
| int | expected | |
| int | lockclass_mask | 
| 1139 | saved_preempt_count = We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt. | 
| 1141 | WARN_ON(Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.()) | 
| 1143 | testcase_fn() | 
| 1149 | expected_testcase_failures++ | 
| 1155 | unexpected_testcase_failures++ | 
| 1157 | Else | 
| 1158 | testcase_successes++ | 
| 1161 | testcase_total++ | 
| 1178 | reset_locks() | 
| Name | Describe | 
|---|---|
| ww_tests | |
| locking_selftest | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |