Function report |
Source Code:arch\x86\kernel\hw_breakpoint.c |
Create Date:2022-07-28 07:45:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Handle debug exception notifications.* Return value is either NOTIFY_STOP or NOTIFY_DONE as explained below.* NOTIFY_DONE returned if one of the following conditions is true.* i) When the causative address is from user-space and the exception
Proto:static int hw_breakpoint_handler(struct die_args *args)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct die_args * | args |
450 | If dr6 & single-step Then Return Don't care |
454 | If (dr6 & DR_TRAP_BITS) == 0 Then Return Don't care |
459 | set_debugreg(0UL, 7) |
465 | debugreg6 &= ~DR_TRAP_BITS |
470 | If Value is more likely to compile time(!(dr6 & (db0 << i))) Then Continue |
481 | bp = per_cpu(Stores the breakpoints currently in use on each breakpoint address* register for each cpus[i], cpu) |
491 | If Not bp Then |
496 | perf_bp_event(bp, regs) |
502 | If type == rigger on instruction execute Then flags |= X86_EFLAGS_RF |
512 | If debugreg6 & DR_TRAP_BITS || dr6 & ~DR_TRAP_BITS Then rc = Don't care |
516 | set_debugreg(dr7, 7) |
517 | put_cpu() |
519 | Return rc |
Name | Describe |
---|---|
hw_breakpoint_exceptions_notify | Handle debug exception notifications. |
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 |