Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\kprobes.h Create Date:2022-07-28 05:53:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Is this kprobe disabled ?

Proto:static inline int kprobe_disabled(struct kprobe *p)

Type:int

Parameter:

TypeParameterName
struct kprobe *p
122  Return * Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered. & (probe is temporarily disabled | akpoint has already gone )
Caller
NameDescribe
optimized_callbackOptimized kprobe call back function: called from optinsn
arch_check_optimized_kprobeCheck optimized_kprobe can actually be optimized.
arch_optimize_kprobesReplace breakpoints (int3) with relative jumps.* Caller must call with locking kprobe_mutex and text_mutex.
kprobe_ftrace_handlerFtrace callback handler for kprobes -- called under preepmt disabed
kprobe_unusedReturn true(!0) if the kprobe is unused
opt_pre_handlerCall all pre_handler on the list, but ignores its return value.* This must be called from arch-dep optimized caller.
kprobe_disarmedReturn true(!0) if the kprobe is disarmed. Note: p must be on hash list
do_unoptimize_kprobesUnoptimize (replace a jump with a breakpoint and remove the breakpoint* if need) kprobes listed on unoptimizing_list.
optimize_kprobeOptimize kprobe if p is ready to be optimized
force_unoptimize_kprobeShort cut to direct unoptimizing
optimize_all_kprobes
unoptimize_all_kprobes
aggr_pre_handler
aggr_post_handler
register_aggr_kprobeThis is the second or subsequent kprobe at the address - handle* the intricacies
register_kprobe
aggr_kprobe_disabledCheck if all probes on the aggrprobe are disabled
__disable_kprobeDisable one kprobe: Make sure called under kprobe_mutex is locked
__unregister_kprobe_topUnregister a kprobe without a scheduler synchronization.
enable_kprobeEnable one kprobe