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:03
Last Modify:2020-03-16 21:34:46 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:nmi_selftest

Proto:void __init nmi_selftest(void)

Type:void

Parameter:Nothing

145  init_nmi_testsuite()
150  printk("----------------\n")
151  printk("| NMI testsuite:\n")
152  printk("--------------------\n")
154  print_testname("remote IPI")
155  dotest(remote_ipi, SUCCESS)
156  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)."\n")
157  print_testname("local IPI")
158  dotest(local_ipi, SUCCESS)
159  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)."\n")
161  cleanup_nmi_testsuite()
163  If unexpected_testcase_failures Then
164  printk("--------------------\n")
165  printk("BUG: %3d unexpected failures (out of %3d) - debugging disabled! |\n", unexpected_testcase_failures, testcase_total)
167  printk("-----------------------------------------------------------------\n")
168  Else if expected_testcase_failures && testcase_successes Then
169  printk("--------------------\n")
170  printk("%3d out of %3d testcases failed, as expected. |\n", expected_testcase_failures, testcase_total)
172  printk("----------------------------------------------------\n")
173  Else if expected_testcase_failures && Not testcase_successes Then
174  printk("--------------------\n")
175  printk("All %3d testcases failed, as expected. |\n", expected_testcase_failures)
177  printk("----------------------------------------\n")
178  Else
179  printk("--------------------\n")
180  printk("Good, all %3d testcases passed! |\n", testcase_successes)
182  printk("---------------------------------\n")
Caller
NameDescribe
native_smp_cpus_done