Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\hw_breakpoint.c Create Date:2022-07-28 13:43:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Add a pinned breakpoint for the given task in our constraint table

Proto:static void toggle_bp_task_slot(struct perf_event *bp, int cpu, enum bp_type_idx type, int weight)

Type:void

Parameter:

TypeParameterName
struct perf_event *bp
intcpu
enum bp_type_idxtype
intweight
175  tsk_pinned = sk_pinned[n] is the number of tasks having n+1 breakpoints
178  old_idx = Count the number of breakpoints of the same type and same task.* The given event must be not on the list. - 1
179  new_idx = old_idx + weight
181  If old_idx >= 0 Then tsk_pinned[old_idx]--
183  If new_idx >= 0 Then tsk_pinned[new_idx]++
Caller
NameDescribe
toggle_bp_slotAdd/remove the given breakpoint in our constraint table