函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\debug_core.c Create Date:2022-07-27 12:41:39
Last Modify:2020-03-17 19:04:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kgdb_reenter_check

函数原型:static int kgdb_reenter_check(struct kgdb_state *ks)

返回类型:int

参数:

类型参数名称
struct kgdb_state *ks
507  如果atomic_read( & The CPU# of the active CPU, or -1 if none:)不等于These macros fold the SMP functionality into a single CPU system()则返回:0
511  Guard for recursive entry 自加
512  addr等于kgdb_arch_pc(ex_vector, linux_regs)
513  dbg_deactivate_sw_breakpoints()
521  如果dbg_remove_sw_break(addr)恒等于0则
522  Guard for recursive entry 等于0
523  kgdb_skipexception - Bail out of KGDB when we've been triggered
524  SW breakpoint management:
525  打印错误信息("re-enter error: breakpoint removed %lx\n", addr)
526  WARN_ON_ONCE(1)
528  返回:1
530  dbg_remove_all_break()
531  kgdb_skipexception - Bail out of KGDB when we've been triggered
533  如果Guard for recursive entry 大于1则
534  dump_stack()
535  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
538  打印错误信息("re-enter exception: ALL breakpoints killed\n")
541  返回:0
543  dump_stack()
544  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
546  返回:1
调用者
名称描述
kgdb_handle_exceptionkgdb_handle_exception() - main entry point from a kernel exception* Locking hierarchy:* interface locks, if any (begin_session)* kgdb lock (kgdb_active)