Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:void arch_uninstall_hw_breakpoint(struct perf_event *bp)

Type:void

Parameter:

TypeParameterName
struct perf_event *bp
136  info = counter_arch_bp(bp)
140  When i < Total number of available HW breakpoint registers cycle
141  slot = this_cpu_ptr( & Stores the breakpoints currently in use on each breakpoint address* register for each cpus[i])
143  If slot == bp Then
144  * slot = NULL
145  Break
149  If WARN_ONCE(i == Total number of available HW breakpoint registers , "Can't find any breakpoint slot") Then Return
152  dr7 = this_cpu_ptr( & Per cpu debug control register value )
153  dr7 &= ~__encode_dr7(i, len, type)
155  set_debugreg( * dr7, 7)
156  If mask Then set_dr_addr_mask(0, i)
Caller
NameDescribe
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.