函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-27 12:38:47
Last Modify:2022-05-22 18:14:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Unoptimize (replace a jump with a breakpoint and remove the breakpoint* if need) kprobes listed on unoptimizing_list.

函数原型:static void do_unoptimize_kprobes(void)

返回类型:void

参数:

502  lockdep_assert_held( & mutex protecting text section modification (dynamic code patching).* some users need to sleep (allocating memory...) while they hold this lock.* Note: Also protects SMP-alternatives modification on x86.)
504  lockdep_assert_cpus_held()
507  如果链表为空则返回
510  Recover original instructions and breakpoints from relative jumps.* Caller must call with locking kprobe_mutex.
514  * Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered.与等于probe is really optimized.* NOTE:* this flag is only for optimized_kprobe.的反
516  如果Is this kprobe disabled ? arch_disarm_kprobe( & kp)
518  如果Return true(!0) if the kprobe is unused
524  删除哈希表中无需重新初始化的条目
525  否则删除链表项并重新初始化
调用者
名称描述
kprobe_optimizer