Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\nmi_selftest.c Create Date:2022-07-28 08:44:02
Last Modify:2020-03-16 21:34:46 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dotest

Proto:static void __init dotest(void (*testcase_fn)(void ), int expected)

Type:void

Parameter:

TypeParameterName
void (*testcase_fn
intexpected
115  testcase_fn()
119  If nmi_fail != expected Then
120  unexpected_testcase_failures++
122  If nmi_fail == FAILURE Then printk(Annotation for a "continued" line of log printout (only done after a* line that had no enclosing \n). Only to be used by core/arch code* during early bootup (a continued line is not SMP-safe otherwise)."FAILED |")
124  Else if nmi_fail == TIMEOUT Then printk(Annotation for a "continued" line of log printout (only done after a* line that had no enclosing \n). Only to be used by core/arch code* during early bootup (a continued line is not SMP-safe otherwise)."TIMEOUT|")
126  Else printk(Annotation for a "continued" line of log printout (only done after a* line that had no enclosing \n). Only to be used by core/arch code* during early bootup (a continued line is not SMP-safe otherwise)."ERROR |")
128  dump_stack()
129  Else
130  testcase_successes++
131  printk(Annotation for a "continued" line of log printout (only done after a* line that had no enclosing \n). Only to be used by core/arch code* during early bootup (a continued line is not SMP-safe otherwise)." ok |")
133  testcase_total++
135  reset_nmi()
Caller
NameDescribe
nmi_selftest
ww_tests
locking_selftest