Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct perf_event * | bp |
136 | info = counter_arch_bp(bp) |
141 | slot = this_cpu_ptr( & Stores the breakpoints currently in use on each breakpoint address* register for each cpus[i]) |
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) |
Name | Describe |
---|---|
kgdb_remove_all_hw_break | |
kgdb_disable_hw_debug | 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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |