Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kgdb.c Create Date:2022-07-28 08:40:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hw_break_reserve_slot

Proto:static int hw_break_reserve_slot(int breakno)

Type:int

Parameter:

TypeParameterName
intbreakno
229  cnt = 0
232  If dbg_is_early Then Return 0
235  for_each_online_cpu(cpu)
236  cnt++
237  pevent = per_cpu_ptr(pev, cpu)
238  If Allow the kernel debugger to reserve breakpoint slots without* taking a lock using the dbg_* variant of for the reserve and* release breakpoint slots. Then Go to fail
242  Return 0
244  fail :
245  for_each_online_cpu(cpu)
246  cnt--
247  If Not cnt Then Break
249  pevent = per_cpu_ptr(pev, cpu)
250  dbg_release_bp_slot( * pevent)
252  Return -1
Caller
NameDescribe
kgdb_set_hw_break