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

Name:kgdb_correct_hw_break

Proto:static void kgdb_correct_hw_break(void)

Type:void

Parameter:Nothing

193  When breakno < Total number of available HW breakpoint registers cycle
197  cpu = These macros fold the SMP functionality into a single CPU system()
198  If Not enabled Then Continue
200  If dbg_is_early Then
206  Continue
208  bp = per_cpu_ptr(pev, cpu)
209  info = counter_arch_bp(bp)
210  If disabled != 1 Then Continue
212  bp_addr = addr
213  bp_len = len
214  bp_type = type
215  address = addr
216  len = len
217  type = type
218  val = Install a perf counter breakpoint.* We seek a free debug address register and use it for this* breakpoint. Eventually we enable it in the debug control register.* Atomic: we hold the counter->ctx->lock and we only handle variables
219  If Not val Then disabled = 0
222  If Not dbg_is_early Then hw_breakpoint_restore()