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

Name:kgdb_disable_hw_debug - Disable hardware debugging while we in kgdb.*@regs: Current &struct pt_regs.* This function will be called if the particular architecture must* disable hardware debugging while it is processing gdb packets or* handling exception.

Proto:static void kgdb_disable_hw_debug(struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct pt_regs *regs
384  cpu = These macros fold the SMP functionality into a single CPU system()
388  set_debugreg(0UL, 7)
389  When i < Total number of available HW breakpoint registers cycle
390  If Not enabled Then Continue
392  If dbg_is_early Then
395  Continue
397  bp = per_cpu_ptr(pev, cpu)
398  If disabled == 1 Then Continue
400  Uninstall the breakpoint contained in the given counter.* First we search the debug address register it uses and then we disable* it.* Atomic: we hold the counter->ctx->lock and we only handle variables* and registers local to this cpu.
401  disabled = 1