Function report |
Source Code:kernel\kprobes.c |
Create Date:2022-07-28 11:36:18 |
| Last Modify:2022-05-22 18:14:58 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:init_kprobes
Proto:static int __init init_kprobes(void)
Type:int
Parameter:Nothing
| 2273 | err = 0 |
| 2277 | When i < KPROBE_TABLE_SIZE cycle |
| 2278 | INIT_HLIST_HEAD( & kprobe_table[i]) |
| 2279 | INIT_HLIST_HEAD( & kretprobe_inst_table[i]) |
| 2280 | raw_spin_lock_init( & (lock)) |
| 2285 | If err Then |
| 2287 | pr_err("Please take care of using kprobes.\n") |
| 2290 | If kretprobe_blacklist_size Then |
| 2311 | NOTE: change this value only with kprobe_mutex held = false |
| 2313 | err = arch_init_kprobes() |
| 2314 | If Not err Then err = register_die_notifier( & kprobe_exceptions_nb) |
| 2316 | If Not err Then err = register_module_notifier( & kprobe_module_nb) |
| 2319 | kprobes_initialized = err == 0 |
| 2321 | If Not err Then init_test_probes() |
| 2323 | Return err |
| 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 |