Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_kprobe

Proto:static int test_kprobe(void)

Type:int

Parameter:Nothing

60  ret = register_kprobe( & kp)
61  If ret < 0 Then
62  pr_err("register_kprobe returned %d\n", ret)
63  Return ret
66  ret = target(rand1)
67  unregister_kprobe( & kp)
69  If preh_val == 0 Then
70  pr_err("kprobe pre_handler not called\n")
71  handler_errors++
74  If posth_val == 0 Then
75  pr_err("kprobe post_handler not called\n")
76  handler_errors++
79  Return 0
Caller
NameDescribe
init_test_probes