函数逻辑报告 |
Source Code:arch\x86\kernel\traps.c |
Create Date:2022-07-27 08:31:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Our handling of the processor debug registers is non-trivial.* We do not clear them on entry and exit from the kernel. Therefore* it is possible to get a watchpoint trap here from inside the kernel.* However, the code in
函数原型:__attribute__((__externally_visible__)) void do_debug(struct pt_regs *regs, long error_code)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pt_regs * | regs | |
long | error_code |
716 | user_icebp等于0 |
734 | set_debugreg(0, 6) |
744 | 清除线程指定标志 |
748 | dr6与等于single-step 的反 |
770 | 如果kprobe_debug_handler(regs)则转到:exit |
774 | 如果notify_die(DIE_DEBUG, "debug", regs, (long) & dr6, error_code, SIGTRAP)恒等于Clean way to return from the notifier and stop further calls.则转到:exit |
782 | debug_stack_usage_inc() |
787 | 如果v8086_mode(regs)则 |
788 | handle_vm86_trap((structkernel_vm86_regs * )regs, error_code, X86_TRAP_DB) |
791 | debug_stack_usage_dec() |
792 | 转到:exit |
803 | Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available: |
804 | flags与等于X86_EFLAGS_TF的反 |
807 | 如果 Debug status used for traps, single steps, etc... 按位与single-step 按位或DR_TRAP_BITS的值或user_icebp则send_sigtrap(regs, error_code, si_code) |
810 | debug_stack_usage_dec() |
812 | exit : |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |