函数逻辑报告 |
Source Code:kernel\debug\kdb\kdb_bp.c |
Create Date:2022-07-27 12:48:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:_kdb_bp_install
函数原型:static int _kdb_bp_install(struct pt_regs *regs, kdb_bp_t *bp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pt_regs * | regs | |
kdb_bp_t * | bp |
132 | 如果KDB_DEBUG(BP)则kdb_printf("%s: bp_installed %d\n", __func__, Breakpoint is installed ) |
135 | 如果非KDB_STATE(SSBPT)则 Do delayed bp handling 等于0 |
137 | 如果 Breakpoint is installed 则返回:1 |
139 | 如果 Do delayed bp handling 或 Delayed breakpoint 且KDB_STATE(DOING_SS)则 |
147 | 否则ret等于set_hw_breakpoint( Address breakpoint is present at , HW break length , Uses hardware register ) |
151 | 如果ret恒等于0则 |
152 | Breakpoint is installed 等于1 |
153 | 否则 |
154 | kdb_printf("%s: failed to set breakpoint at 0x%lx\n", __func__, Address breakpoint is present at ) |
156 | 如果非 Uses hardware register 则 |
157 | kdb_printf("Software breakpoints are unavailable.\n Boot the kernel with rodata=off\n OR use hw breaks: help bph\n") |
161 | 返回:1 |
163 | 返回:0 |
名称 | 描述 |
---|---|
kdb_bp_install | kdb_bp_install* Install kdb_breakpoints prior to returning from the* kernel debugger. This allows the kdb_breakpoints to be set* upon functions that are used internally by kdb, such as* printk(). This function is only called once per kdb session. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |