Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Remove optimized instructions

Proto:static void kill_optimized_kprobe(struct kprobe *p)

Type:void

Parameter:

TypeParameterName
struct kprobe *p
742  op = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(p, structoptimized_kprobe, kp)
743  If Not list_empty - tests whether a list is empty*@head: the list to test. Then list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
746  * 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.
748  If Return true(!0) if the kprobe is unused Then
750  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
756  hlist_del_rcu - deletes entry from hash list without re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on entry does not return true after this,* the entry is in an undefined state. It is useful for RCU based
760  arch_remove_optimized_kprobe(op)
Caller
NameDescribe
kill_kprobeSet the kprobe gone and remove its instruction buffer.