Function report |
Source Code:kernel\test_kprobes.c |
Create Date:2022-07-28 11:21:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:test_kprobes
Proto:static int test_kprobes(void)
Type:int
Parameter:Nothing
115 | location of the probe point = NULL |
116 | * Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered. = 0 |
117 | ret = register_kprobes(kps, 2) |
118 | If ret < 0 Then |
123 | preh_val = 0 |
124 | posth_val = 0 |
127 | If preh_val == 0 Then |
128 | pr_err("kprobe pre_handler not called\n") |
129 | handler_errors++ |
132 | If posth_val == 0 Then |
133 | pr_err("kprobe post_handler not called\n") |
134 | handler_errors++ |
137 | preh_val = 0 |
138 | posth_val = 0 |
141 | If preh_val == 0 Then |
142 | pr_err("kprobe pre_handler2 not called\n") |
143 | handler_errors++ |
146 | If posth_val == 0 Then |
147 | pr_err("kprobe post_handler2 not called\n") |
148 | handler_errors++ |
151 | unregister_kprobes(kps, 2) |
152 | Return 0 |
Name | Describe |
---|---|
init_test_probes |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |