函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unoptimize_all_kprobes

函数原型:static void unoptimize_all_kprobes(void)

返回类型:void

参数:

868  mutex_lock( & This protects kprobe_table and optimizing_list )
870  如果非NOTE: change this value only with kprobe_mutex held
871  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
872  返回
875  cpus_read_lock()
876  NOTE: change this value only with kprobe_mutex held = false
877 i小于KPROBE_TABLE_SIZE循环
878  head等于kprobe_table[i]
880  如果非Is this kprobe disabled ? Unoptimize a kprobe if p is optimized
884  cpus_read_unlock()
885  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
888  Wait for completing optimization and unoptimization
889  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
调用者
名称描述
proc_kprobes_optimization_handler