Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\test_kprobes.c Create Date:2022-07-28 11:21:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_test_probes

Proto:int init_test_probes(void)

Type:int

Parameter:Nothing

275  target = kprobe_target
276  target2 = kprobe_target2
278  Do
279  rand1 = prandom_u32()
280  When rand1 <= div_factor cycle
282  pr_info("started\n")
283  num_tests++
284  ret = test_kprobe()
285  If ret < 0 Then errors++
288  num_tests++
289  ret = test_kprobes()
290  If ret < 0 Then errors++
305  If errors Then pr_err("BUG: %d out of %d tests failed\n", errors, num_tests)
307  Else if handler_errors Then pr_err("BUG: %d error(s) running handlers\n", handler_errors)
309  Else pr_info("passed successfully\n")
312  Return 0
Caller
NameDescribe
init_kprobes