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:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type)

Type:int

Parameter:

TypeParameterName
intcpu
struct perf_event *bp
enum bp_type_idxtype
107  tsk = target
109  count = 0
112  If target == tsk && find_slot_idx(bp_type) == type && ( cpu < 0 || cpu == cpu ) Then count += hw_breakpoint_weight(iter)
118  Return count
Caller
NameDescribe
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