函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void arch_uninstall_hw_breakpoint(struct perf_event *bp)

返回类型:void

参数:

类型参数名称
struct perf_event *bp
136  info等于counter_arch_bp(bp)
140 i小于Total number of available HW breakpoint registers 循环
141  slot等于this_cpu_ptr( & Stores the breakpoints currently in use on each breakpoint address* register for each cpus[i])
143  如果slot恒等于bp
144  * slot = NULL
145  退出
149  如果WARN_ONCE(i == Total number of available HW breakpoint registers , "Can't find any breakpoint slot")则返回
152  dr7等于this_cpu_ptr( & Per cpu debug control register value )
153  dr7与等于__encode_dr7(i, len, type)的反
155  set_debugreg( * dr7, 7)
156  如果maskset_dr_addr_mask(0, i)
调用者
名称描述
kgdb_remove_all_hw_break
kgdb_disable_hw_debugkgdb_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.
hw_breakpoint_del