Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This function is called from finish_task_switch when task tk becomes dead,* so that we can recycle any function-return probe instances associated* with this task. These left over instances represent probed functions

Proto:void kprobe_flush_task(struct task_struct *tk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tk
1250  flags = 0
1252  If Value for the false possibility is greater at compile time(!kprobes_initialized) Then Return
1256  INIT_HLIST_HEAD( & empty_rp)
1257  hash = hash_ptr(tk, KPROBE_HASH_BITS)
1258  head = kretprobe_inst_table[hash]
1259  kretprobe_table_lock(hash, & flags)
1261  If task == tk Then recycle_rp_inst(ri, & empty_rp)
1264  kretprobe_table_unlock(hash, & flags)
1266  hlist_del( & hlist)
1267  kfree(ri)