/Linux-v6.1/Documentation/devicetree/bindings/reserved-memory/ |
D | ramoops.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: "http://devicetree.org/schemas/reserved-memory/ramoops.yaml#" 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 title: Ramoops oops/panic logger 10 ramoops provides persistent RAM storage for oops and panics, so they can be 11 recovered after a reboot. This is a child-node of "/reserved-memory", and 16 as kernel log messages, or for optional ECC error-correction data. The total 19 Any remaining space will be used for a circular buffer of oops and panic 23 At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size" [all …]
|
/Linux-v6.1/fs/pstore/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 124 messages, even if no oops or panic happened. 132 data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID]. 150 tristate "Log panic/oops to a RAM buffer" 157 This enables panic and oops messages to be logged to a circular 163 For more information, see Documentation/admin-guide/ramoops.rst. 173 tristate "Log panic/oops to a block device" 179 This enables panic and oops message to be logged to a block dev 182 For more information, see Documentation/admin-guide/pstore-blk.rst 195 with no leading 0x, for example b302. [all …]
|
D | ram.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RAM Oops/Panic logger 32 "size of each dump done on oops/panic"); 49 "start of reserved RAM used to store oops/panic logs"); 54 "size of reserved RAM used to store oops/panic logs"); 59 "memory type: 0=write-combined (default), 1=unbuffered, 2=cached"); 61 static int ramoops_max_reason = -1; 64 "maximum reason for kmsg dump (default 2: Oops and Panic) "); 69 "if non-zero, the option enables ECC support and specifies " 73 static int ramoops_dump_oops = -1; [all …]
|
D | blk.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Implements pstore backend driver that write to block (or non-block) storage 24 MODULE_PARM_DESC(kmsg_size, "kmsg dump record size in kbytes"); 29 "maximum reason for kmsg dump (default 2: Oops and Panic)"); 34 static long pmsg_size = -1; 42 static long console_size = -1; 50 static long ftrace_size = -1; 60 * blkdev - the block device to use for pstore storage 61 * See Documentation/admin-guide/pstore-blk.rst for details. 78 if (_##name_ & ((alignsize) - 1)) { \ [all …]
|
D | zone.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * struct psz_buffer - header of zone to flush to storage 28 * @sig: signature to indicate header (PSZ_SIG xor PSZONE-type value) 42 * struct psz_kmsg_header - kmsg dump-specific header to flush to storage 44 * @magic: magic num for kmsg dump header 45 * @time: kmsg dump trigger time 47 * @counter: kmsg dump counter 48 * @reason: the kmsg dump reason (e.g. oops, panic, etc) 51 * This is a sub-header for a kmsg dump, trailing after &psz_buffer. 64 * struct pstore_zone - single stored buffer [all …]
|
D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Persistent Storage - platform driver interface parts. 5 * Copyright (C) 2007-2008 Google, Inc. 39 * We defer making "oops" entries appear in pstore - see 43 static int pstore_update_ms = -1; 46 "(default is -1, which means runtime updates are disabled; " 57 "powerpc-ofw", 58 "powerpc-common", 60 "powerpc-opal", 274 return -EINVAL; in pstore_compress() [all …]
|
/Linux-v6.1/Documentation/admin-guide/ |
D | pstore-blk.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 pstore block oops/panic logger 7 ------------ 9 pstore block (pstore/blk) is an oops/panic logger that writes its logs to a 10 block device and non-block device before the system crashes. You can get 13 mount -t pstore pstore /sys/fs/pstore 17 --------------------- 27 Configurations for driver are all about block device and non-block device, 31 ----------------------- 51 #. /dev/<disk_name><decimal> represents the device number of partition - device [all …]
|
D | bug-hunting.rst | 4 Kernel bug reports often come with a stack dump like the one below:: 6 ------------[ cut here ]------------ 8 …Modules linked in: dvb_usb_gp8psk(-) dvb_usb dvb_core nvidia_drm(PO) nvidia_modeset(PO) snd_hda_co… 9 CPU: 1 PID: 28102 Comm: rmmod Tainted: P WC O 4.8.4-build.1 #1 10 Hardware name: MSI MS-7309/MS-7309, BIOS V1.12 02/23/2009 38 ---[ end trace 6ebc60ef3981792f ]--- 42 the issue, it may also contain the word **Oops**, as on this one:: 47 Oops: 0002 [#1] PREEMPT SMP 50 Despite being an **Oops** or some other sort of stack trace, the offended 52 we'll refer to "Oops" for all kinds of stack traces that need to be analyzed. [all …]
|
/Linux-v6.1/kernel/ |
D | panic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * This function is used through-out the kernel (including mm and fs) 43 * Should we dump all CPUs backtraces in an oops event? 110 * Stop ourself in panic -- architecture code may override this 130 * crash dump, it should save registers of each stopped CPU and disable 131 * per-CPU features such as virtualization extensions. 159 * as saving register state for crash dump. 203 * panic - halt the system 239 * It's possible to come here directly from a panic-assertion and in panic() 241 * preempt to be disabled. No point enabling it later though... in panic() [all …]
|
/Linux-v6.1/drivers/mtd/ |
D | mtdoops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * MTD Oops/Panic logger 29 "record size for MTD OOPS pages in bytes (default 4096)"); 39 "set to 1 to dump oopses, 0 to only dump panics (default 1)"); 51 struct kmsg_dumper dump; member 68 set_bit(page, cxt->oops_page_used); in mark_page_used() 73 clear_bit(page, cxt->oops_page_used); in mark_page_unused() 78 return test_bit(page, cxt->oops_page_used); in page_is_used() 83 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block() 84 u32 start_page_offset = mtd_div_by_eb(offset, mtd) * mtd->erasesize; in mtdoops_erase_block() [all …]
|
/Linux-v6.1/arch/arm/kernel/ |
D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2009 Russell King 79 frame = ((unsigned long *)frame)[-2] - 4; in dump_backtrace_entry() 103 for (reg = 10, x = 0, p = str; reg >= 0; reg--) { in dump_backtrace_stm() 105 p += sprintf(p, " r%d:%08x", reg, *stack--); in dump_backtrace_stm() 120 * physical memory. If it is not there, then we can't dump 128 return -EFAULT; in verify_stack() 135 * Dump out the contents of some memory nicely... 150 str[sizeof(str) - 1] = '\0'; in dump_mem() 174 * Note that we now dump the code first, just in case the backtrace in dump_instr() [all …]
|
/Linux-v6.1/tools/testing/selftests/rcutorture/bin/ |
D | console-badness.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 7 # Usage: console-badness.sh 13 …=====|BUG: KCSAN:|Call Trace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall on CPU|Stal… 14 grep -v 'ODEBUG: ' | 15 grep -v 'This means that this is a DEBUG kernel and it is' | 16 grep -v 'Warning: unable to open an initial console' | 17 grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr.*the init process!' | 18 grep -v 'NOHZ tick-stop error: Non-RCU local softirq work is pending, handler'
|
D | parse-console.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 6 # a text string for error-message purposes. 8 # Usage: parse-console.sh file title 14 T=${TMPDIR-/tmp}/parse-console.sh.$$ 18 trap 'rm -f $T.seq $T.diags' 0 23 if test -f "$file" -a -r "$file" 30 if grep -Pq '\x00' < $file 41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file 43 nerrs=`grep --binary-files=text '!!!' $file | 44 tail -1 | [all …]
|
/Linux-v6.1/Documentation/admin-guide/sysctl/ |
D | kernel.rst | 5 .. See scripts/check-sysctl-docs to keep this up to date 13 Documentation/admin-guide/sysctl/index.rst. 15 ------------------------------------------------------------------------------ 39 If BSD-style process accounting is enabled these values control 71 The machine hardware name, the same output as ``uname -m`` 77 This variable has no effect and may be removed in future kernel 129 Ctrl-Alt-Delete). Writing a value to this file which doesn't 130 correspond to a running process will result in ``-ESRCH``. 132 See also `ctrl-alt-del`_. 168 %d dump mode, matches ``PR_SET_DUMPABLE`` and [all …]
|
/Linux-v6.1/include/linux/ |
D | pstore.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Persistent Storage - pstore.h 35 /* PPC64-specific partition types */ 51 * struct pstore_record - details of a pstore record entry 54 * @id: per-type unique identifier for record 61 * kfree()d by the pstore core if non-NULL 66 * @count: Oops count since boot 89 * struct pstore_info - backend pstore driver structure 95 * @buf: preallocated crash dump buffer 96 * @bufsize: size of @buf available for crash dump bytes (must match [all …]
|
/Linux-v6.1/arch/powerpc/kernel/ |
D | nvram_64.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 .name = "ibm,rtas-log", 54 .index = -1, 60 .name = "lnx,oops-log", 63 .index = -1, 69 "ibm,rtas-log", 71 "lnx,oops-log", 79 .dump = oops_to_nvram 83 * For capturing and compressing an oops or panic report... 87 * oops_buf[] holds the compressed text, preceded by a oops header. [all …]
|
/Linux-v6.1/tools/testing/selftests/lkdtm/ |
D | run.sh | 2 # SPDX-License-Identifier: GPL-2.0 9 set -e 10 TRIGGER=/sys/kernel/debug/provoke-crash/DIRECT 15 if [ ! -r $TRIGGER ] ; then 16 /sbin/modprobe -q lkdtm || true 17 if [ ! -r $TRIGGER ] ; then 29 line=$(grep -E '^#?'"$test"'\b' tests.txt) 30 if [ -z "$line" ]; then 35 if ! grep -E -q '^'"$test"'$' "$TRIGGER" ; then 41 test=$(echo "$line" | cut -d" " -f1) [all …]
|
/Linux-v6.1/arch/x86/ |
D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0 50 a full-blown printk console driver + klogd. 60 bool "Dump the EFI pagetable" 64 Enable this if you want to dump the EFI page table before 70 bool "Set upper limit of TLB entries to flush one-by-one" 73 X86-only for now. 76 kernel flushes one-by-one instead of doing a full TLB flush. In 79 to -1, the code flushes the whole TLB unconditionally. Otherwise, 100 options. See Documentation/x86/x86_64/boot-options.rst for more 128 bool "port 0x80 based port-IO delay [recommended]" [all …]
|
/Linux-v6.1/arch/arm/mm/ |
D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Modifications for ARM processor (c) 1995-2004 Russell King 15 #include <linux/page-flags.h> 31 * This is useful to dump out the page tables associated with 126 pr_alert("8<--- cut here ---\n"); in die_kernel_fault() 131 die("Oops", regs, fsr); in die_kernel_fault() 137 * Oops. The kernel tried to access some page that wasn't present. 151 * No handler, we'll have to terminate things with extreme prejudice. in __do_kernel_fault() 182 pr_err("8<--- cut here ---\n"); in __do_user_fault() 184 tsk->comm, sig, addr, fsr); in __do_user_fault() [all …]
|
/Linux-v6.1/Documentation/s390/ |
D | s390dbf.rst | 6 - arch/s390/kernel/debug.c 7 - arch/s390/include/asm/debug.h 10 ------------ 24 ------- 31 which are written by event- and exception-calls. 33 An event-call writes the specified debug entry to the active debug 39 An exception-call writes the specified debug entry to the log and 48 There are four versions for the event- and exception-calls: One for 50 and one for sprintf-like formatted strings. 54 - Timestamp [all …]
|
/Linux-v6.1/arch/x86/kernel/ |
D | dumpstack.c | 41 info->type = STACK_TYPE_TASK; in in_task_stack() 42 info->begin = begin; in in_task_stack() 43 info->end = end; in in_task_stack() 44 info->next_sp = NULL; in in_task_stack() 49 /* Called from get_stack_info_noinstr - so must be noinstr too */ 60 info->type = STACK_TYPE_ENTRY; in in_entry_stack() 61 info->begin = begin; in in_entry_stack() 62 info->end = end; in in_entry_stack() 63 info->next_sp = NULL; in in_entry_stack() 83 return -EPERM; in copy_code() [all …]
|
/Linux-v6.1/arch/x86/mm/ |
D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar 49 return -1; in kmmio_fault() 56 * 32-bit mode: 61 * 64-bit mode: 88 * In 64-bit mode 0x40..0x4F are valid REX prefixes in check_prefetch_opcode() 116 c->x86_vendor == X86_VENDOR_AMD && in is_amd_k8_pre_npt() 117 c->x86 == 0xf && c->x86_model < 0x40); in is_amd_k8_pre_npt() 127 /* Erratum #91 affects AMD K8, pre-NPT CPUs */ in is_prefetch() 143 * not-present page (e.g. due to a race). No one has ever in is_prefetch() [all …]
|
/Linux-v6.1/arch/sh/mm/ |
D | fault.c | 5 * Copyright (C) 2003 - 2012 Paul Mundt 34 * This is useful to dump out the page tables associated with 42 pgd = mm->pgd; in show_pte() 184 return -1; in vmalloc_fault() 187 * Synchronize this task's top level page-table in vmalloc_fault() 196 return -1; in vmalloc_fault() 200 return -1; in vmalloc_fault() 216 printk_address(regs->pc, 1); in show_fault_oops() 233 * Oops. The kernel tried to access some bad page. We'll have to in no_context() 240 die("Oops", regs, error_code); in no_context() [all …]
|
/Linux-v6.1/arch/openrisc/kernel/ |
D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 73 esp = (unsigned long)(regs->sp); in show_registers() 79 smp_processor_id(), regs->pc, regs->sr, regs->sp); in show_registers() 81 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in show_registers() 83 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in show_registers() 85 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in show_registers() 87 regs->gpr[12], regs->gpr[13], regs->gpr[14], regs->gpr[15]); in show_registers() 89 regs->gpr[16], regs->gpr[17], regs->gpr[18], regs->gpr[19]); in show_registers() 91 regs->gpr[20], regs->gpr[21], regs->gpr[22], regs->gpr[23]); in show_registers() [all …]
|
/Linux-v6.1/lib/ |
D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0-only 19 parameter printk.time=1. See Documentation/admin-guide/kernel-parameters.rst 35 no option to enable/disable at the kernel command line parameter or 50 int "Default console loglevel (1-15)" 60 Note: This does not affect the log level of un-prefixed printk() 65 int "quiet console loglevel (1-15)" 76 int "Default message log level (1-7)" 80 Default log level for printk statements with no specified priority. 82 This was hard-coded to KERN_WARNING since at least 2.6.10 but folks 118 enabled/disabled based on various levels of scope - per source file, [all …]
|