Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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))
2283  err = Lookup and populate the kprobe_blacklist.* Unlike the kretprobe blacklist, we'll need to determine* the range of addresses that belong to the said functions,* since a kprobe need not necessarily be at the beginning* of a function.
2285  If err Then
2286  pr_err("kprobes: failed to populate blacklist: %d\n", err)
2287  pr_err("Please take care of using kprobes.\n")
2290  If kretprobe_blacklist_size Then
2292  When name != NULL cycle
2304  size of instruction slot = MAX_OPTINSN_SIZE
2307  NOTE: change this value only with kprobe_mutex held = true
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