函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Count the number of breakpoints of the same type and same task.* The given event must be not on the list.

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

返回类型:int

参数:

类型参数名称
intcpu
struct perf_event *bp
enum bp_type_idxtype
107  tsk等于target
109  count等于0
112  如果target恒等于tskfind_slot_idx(bp_type)恒等于typecpu小于0或cpu恒等于cpu的值则count加等于hw_breakpoint_weight(iter)
118  返回:count
调用者
名称描述
fetch_bp_busy_slotsReport the number of pinned/un-pinned breakpoints we have in* a given cpu (cpu > -1) or in all of them (cpu = -1).
toggle_bp_task_slotAdd a pinned breakpoint for the given task in our constraint table