Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:35:17
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:optimize_all_kprobes

Proto:static void optimize_all_kprobes(void)

Type:void

Parameter:Nothing

843  mutex_lock( & This protects kprobe_table and optimizing_list )
845  If NOTE: change this value only with kprobe_mutex held Then Go to out
848  cpus_read_lock()
849  NOTE: change this value only with kprobe_mutex held = true
850  When i < KPROBE_TABLE_SIZE cycle
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  If Not Is this kprobe disabled ? Then 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.
Caller
NameDescribe
proc_kprobes_optimization_handler