函数逻辑报告 |
Source Code:arch\x86\kernel\hw_breakpoint.c |
Create Date:2022-07-27 08:45:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int hw_breakpoint_handler(struct die_args *args)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct die_args * | args |
450 | 如果dr6按位与single-step 则返回:Don't care |
454 | 如果dr6按位与DR_TRAP_BITS的值恒等于0则返回:Don't care |
459 | set_debugreg(0UL, 7) |
465 | debugreg6与等于DR_TRAP_BITS的反 |
470 | 如果此条件成立可能性大(为编译器优化)(!(dr6 & (db0 << i)))则继续下一循环 |
481 | bp等于per_cpu(Stores the breakpoints currently in use on each breakpoint address* register for each cpus[i], cpu) |
491 | 如果非bp则 |
493 | 退出 |
496 | perf_bp_event(bp, regs) |
502 | 如果type恒等于rigger on instruction execute 则flags或等于X86_EFLAGS_RF |
512 | 如果debugreg6按位与DR_TRAP_BITS或dr6按位与DR_TRAP_BITS的反则rc等于Don't care |
516 | set_debugreg(dr7, 7) |
517 | put_cpu() |
519 | 返回:rc |
名称 | 描述 |
---|---|
hw_breakpoint_exceptions_notify | Handle debug exception notifications. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |