函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:optimize_all_kprobes

函数原型:static void optimize_all_kprobes(void)

返回类型:void

参数:

843  mutex_lock( & This protects kprobe_table and optimizing_list )
845  如果NOTE: change this value only with kprobe_mutex held 则转到:out
848  cpus_read_lock()
849  NOTE: change this value only with kprobe_mutex held = true
850 i小于KPROBE_TABLE_SIZE循环
851  head等于kprobe_table[i]
852  hlist_for_each_entry_rcu - iterate over rcu list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the hlist_node within the struct.(p, head, hlist)
853  如果非Is this kprobe disabled ? Optimize kprobe if p is ready to be optimized
856  cpus_read_unlock()
857  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
858  out :
859  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.
调用者
名称描述
proc_kprobes_optimization_handler