Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unoptimize_all_kprobes

Proto:static void unoptimize_all_kprobes(void)

Type:void

Parameter:Nothing

868  mutex_lock( & This protects kprobe_table and optimizing_list )
870  If Not NOTE: change this value only with kprobe_mutex held Then
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  Return
875  cpus_read_lock()
876  NOTE: change this value only with kprobe_mutex held = false
877  When i < KPROBE_TABLE_SIZE cycle
878  head = kprobe_table[i]
880  If Not Is this kprobe disabled ? Then 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
Caller
NameDescribe
proc_kprobes_optimization_handler