函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\nmi_selftest.c Create Date:2022-07-27 09:43:09
Last Modify:2020-03-16 21:34:46 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dotest

函数原型:static void __init dotest(void (*testcase_fn)(void ), int expected)

返回类型:void

参数:

类型参数名称
void (*testcase_fn
intexpected
115  testcase_fn()
119  如果nmi_fail不等于expected
120  unexpected_testcase_failures自加
122  如果nmi_fail恒等于FAILUREprintk(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  否则如果nmi_fail恒等于TIMEOUTprintk(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  否则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  否则
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()
调用者
名称描述
nmi_selftest
ww_tests
locking_selftest测试锁的API是否正常使用