函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kgdb.c Create Date:2022-07-27 09:40:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static void kgdb_disable_hw_debug(struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
struct pt_regs *regs
384  cpu等于These macros fold the SMP functionality into a single CPU system()
388  set_debugreg(0UL, 7)
389 i小于Total number of available HW breakpoint registers 循环
390  如果非enabled则继续下一循环
392  如果dbg_is_early
395  继续下一循环
397  bp等于per_cpu_ptr(pev, cpu)
398  如果disabled恒等于1则继续下一循环
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