Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\debug_core.c Create Date:2022-07-28 11:37:44
Last Modify:2020-03-17 19:04:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kgdb_reenter_check

Proto:static int kgdb_reenter_check(struct kgdb_state *ks)

Type:int

Parameter:

TypeParameterName
struct kgdb_state *ks
507  If atomic_read( & The CPU# of the active CPU, or -1 if none:) != These macros fold the SMP functionality into a single CPU system() Then Return 0
511  Guard for recursive entry ++
512  addr = kgdb_arch_pc(ex_vector, linux_regs)
513  dbg_deactivate_sw_breakpoints()
521  If dbg_remove_sw_break(addr) == 0 Then
522  Guard for recursive entry = 0
523  kgdb_skipexception - Bail out of KGDB when we've been triggered
524  SW breakpoint management:
525  pr_crit("re-enter error: breakpoint removed %lx\n", addr)
526  WARN_ON_ONCE(1)
528  Return 1
530  dbg_remove_all_break()
531  kgdb_skipexception - Bail out of KGDB when we've been triggered
533  If Guard for recursive entry > 1 Then
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  pr_crit("re-enter exception: ALL breakpoints killed\n")
541  Return 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  Return 1
Caller
NameDescribe
kgdb_handle_exceptionkgdb_handle_exception() - main entry point from a kernel exception* Locking hierarchy:* interface locks, if any (begin_session)* kgdb lock (kgdb_active)