函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kgdb.c Create Date:2022-07-27 09:40:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__kgdb_notify

函数原型:static int __kgdb_notify(struct die_args *args, unsigned long cmd)

返回类型:int

参数:

类型参数名称
struct die_args *args
unsigned longcmd
529  regs等于regs
532  :cmd恒等于DIE_DEBUG
533  如果atomic_read( & kgdb_cpu_doing_single_step)不等于负1则
536  退出
537  否则如果test_thread_flag(able singlestep on user return)则返回:Don't care
543  默认
544  如果ser_mode(regs) determines whether a register set came from user* mode则返回:Don't care
548  如果kgdb_handle_exception() - main entry point from a kernel exception* Locking hierarchy:* interface locks, if any (begin_session)* kgdb lock (kgdb_active)则返回:Don't care
552  h_nmi_watchdog - restart NMI watchdog timeout.* If the architecture supports the NMI watchdog, touch_nmi_watchdog()* may be used to reset the timeout - for code which intentionally* disables interrupts for a long time. This call is stateless.
553  返回:Clean way to return from the notifier and stop further calls.
调用者
名称描述
kgdb_ll_trap
kgdb_notify