函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\hw_breakpoint.c Create Date:2022-07-27 15:04:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Add a pinned breakpoint for the given task in our constraint table

函数原型:static void toggle_bp_task_slot(struct perf_event *bp, int cpu, enum bp_type_idx type, int weight)

返回类型:void

参数:

类型参数名称
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_idxweight
181  如果old_idx大于等于0则tsk_pinned[old_idx]自减
183  如果new_idx大于等于0则tsk_pinned[new_idx]自加
调用者
名称描述
toggle_bp_slotAdd/remove the given breakpoint in our constraint table