본문 바로가기

Core BSP 분석

(119)
CONFIG_DETECT_HUNG_TASK #ifdef CONFIG_DETECT_HUNG_TASK extern unsigned int sysctl_hung_task_panic; extern unsigned long sysctl_hung_task_check_count; extern unsigned long sysctl_hung_task_timeout_secs; extern unsigned long sysctl_hung_task_warnings; extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); #else /* Avoid need for ifdefs elsewhere in t..
gdt_page DEFINE_PER_CPU_PAGE_ALIGNED(structgdt_page, gdt_page) = { .gdt = { /* * Weneed valid kernel segments for data and code in long mode too * IRETwill check the segment types kkeil2000/10/28 * Alsosysret mandates a special GDT layout * * TLSdescriptors are currently at a different place compared to i386. *Hopefully nobody expects them at a fixed place (Wine?) */ [GDT_ENTRY_KERNEL32_CS] = GDT_ENTRY_I..
process state /* * Per process flags */ #define PF_EXITING 0x00000004 /* getting shut down */ #define PF_EXITPIDONE 0x00000008 /* pi exit done on shut down */ #define PF_VCPU 0x00000010 /* I'm a virtual CPU */ #define PF_WQ_WORKER 0x00000020 /* I'm a workqueue worker */ #define PF_FORKNOEXEC 0x00000040 /* forked but didn't exec */ #define PF_MCE_PROCESS 0x00000080 /* process policy on mce errors */ #define PF..
cmm: thread dump ;**************************************************************************** ;** thread_process_dump_austin.cmm ;** ;** This cmm file is designed to dump tcb information of all processes in Moorefield platform. ;** ;** ;**************************************************************************** ;** ;** EDIT HISTORY FOR MODULE ;** ;** ;** when who what, where, why ;** -------- --- -------------..
x86 stack dump(1) Cy _ RAX 0F RBX FFFFFFFF83358820 ^S+^Stack_________+ P P RCX FFFF88007EB0EF28 RDX 1 SP> FFFF880044E35EC0 Ac _ RSI FFFF88007EB0D138 RDI 63 +08 FFFFFFFF823B8B1E Zr _ R8 1 R9 0 +10 0000000000000002 S _ R10 0 R11 0 +18 0000000000000000 T _ R12 63 R13 0246 +20 00000000F95C1FB4 I _ R14 6 R15 0 +28 FFFF880044E35F50 D _ RBP FFFF880044E35E88 RSP FFFF880044E35E88 +300000000000000000 O _ RF 7006 RIP FFFFFF..
register dump When kernel panic occurs in the arm processor, the __show_regs function is called. This function later calls show_extra_register_data(). 428 void __show_regs(struct pt_regs *regs) 429 { 430 unsigned long flags; 431 char buf[64]; 432 #if defined(CONFIG_CPU_CP15_MMU) && defined(CONFIG_LGE_HANDLE_PANIC_CP15) 433 unsigned int c1, c2; 434 #endif 435 436 printk("CPU: %d %s (%s %.*s)\n", 437 raw_smp_pr..
crashlogd [RAMDUMP_MODE] main do_ramdump_checks read_startupreason uptime_history update_logs_permission crashlog_check_panic_events crashlog_check_panic crashlog_check_ramdump
perf: fix kernel panic when parsing user space CS ChangeLog V3: Keep rsp pointing to pt_regs before sysexit. ChangeLog V2: Before sysexit, perf NMI might arrive. There is still a race. Here we change rsp to keep it pointing to pt_regs->orig_ax. In addition, after sti, before sysexit, an irq might arrives. That causes more chances for perf NMI to jump in. We hit a kernel panic when running perf to collect some performance data. kenel is x86_64 a..