函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:_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)则
140  如果KDB_DEBUG(BP)则kdb_printf("%s: delayed bp\n", __func__)
142  kdb_handle_bp(regs, bp)
143  返回:0
145  如果非 Uses hardware register ret等于dbg_set_sw_break( Address breakpoint is present at )
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_installkdb_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.