Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\dumpstack.c Create Date:2022-07-28 07:34:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__die

Proto:int __die(const char *str, struct pt_regs *regs, long err)

Type:int

Parameter:

TypeParameterName
const char *str
struct pt_regs *regs
longerr
370  pr = ""
373  If Not die_counter Then exec_summary_regs = regs
376  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PREEMPTION) Then pr = If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PREEMPT_RT) Then " PREEMPT_RT" Else " PREEMPT"
379  printk(he default kernel loglevel "%s: %04lx [#%d]%s%s%s%s%s\n", str, err & 0xffff, ++die_counter, pr, IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SMP) ? " SMP" : "", debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "", IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KASAN) ? " KASAN" : "", IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PAGE_TABLE_ISOLATION) ? (boot_cpu_has(Kernel Page Table Isolation enabled ) ? " PTI" : " NOPTI") : "")
388  show_regs(regs)
389  print_modules()
391  If notify_die(DIE_OOPS, str, regs, err, trap_nr, SIGSEGV) == Clean way to return from the notifier and stop further calls. Then Return 1
395  Return 0
Caller
NameDescribe
dieThis is gone through when something in the kernel has done something bad* and is about to be terminated: