/linux/Documentation/devicetree/bindings/reserved-memory/ |
H A 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/fs/pstore/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 42 messages, even if no oops or panic happened. 51 data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID]. 69 tristate "Log panic/oops to a RAM buffer" 76 This enables panic and oops messages to be logged to a circular 82 For more information, see Documentation/admin-guide/ramoops.rst. 92 tristate "Log panic/oops to a block device" 98 This enables panic and oops message to be logged to a block dev 101 For more information, see Documentation/admin-guide/pstore-blk.rst 114 with no leading 0x, for example b302. [all …]
|
H A D | ram.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RAM Oops/Panic logger 34 "size of each dump done on oops/panic"); 51 "start of reserved RAM used to store oops/panic logs"); 60 "size of reserved RAM used to store oops/panic logs"); 65 "memory type: 0=write-combined (default), 1=unbuffered, 2=cached"); 67 static int ramoops_max_reason = -1; 70 "maximum reason for kmsg dump (default 2: Oops and Panic) "); 75 "if non-zero, the option enables ECC support and specifies " 79 static int ramoops_dump_oops = -1; [all …]
|
H A 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 …]
|
H A 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 …]
|
H A 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. 32 * We defer making "oops" entries appear in pstore - see 36 static int pstore_update_ms = -1; 39 "(default is -1, which means runtime updates are disabled; " 50 "powerpc-ofw", 51 "powerpc-common", 53 "powerpc-opal", 77 * pstore no longer implements compression via the crypto API, and only [all …]
|
/linux/Documentation/admin-guide/ |
H A 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 …]
|
H A 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 …]
|
H A D | kernel-parameters.txt | 16 force -- enable ACPI if default was off 17 on -- enable ACPI but allow fallback to DT [arm64,riscv64] 18 off -- disable ACPI if default was on 19 noirq -- do not use ACPI for IRQ routing 20 strict -- Be less tolerant of platforms that are not 22 rsdt -- prefer RSDT over (default) XSDT 23 copy_dsdt -- copy DSDT to memory 24 nospcr -- disable console in ACPI SPCR table as 41 If set to vendor, prefer vendor-specific driver 73 Documentation/firmware-guide/acpi/debug.rst for more information about [all …]
|
/linux/drivers/mtd/ |
H A D | mtdoops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * MTD Oops/Panic logger 31 "record size for MTD OOPS pages in bytes (default 4096)"); 41 "set to 1 to dump oopses, 0 to only dump panics (default 1)"); 53 struct kmsg_dumper dump; member 70 set_bit(page, cxt->oops_page_used); in mark_page_used() 75 clear_bit(page, cxt->oops_page_used); in mark_page_unused() 80 return test_bit(page, cxt->oops_page_used); in page_is_used() 85 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block() 86 u32 start_page_offset = mtd_div_by_eb(offset, mtd) * mtd->erasesize; in mtdoops_erase_block() [all …]
|
/linux/kernel/ |
H A D | panic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * This function is used through-out the kernel (including mm and fs) 47 * Should we dump all CPUs backtraces in an oops event? 145 * Stop ourself in panic -- architecture code may override this 165 * crash dump, it should save registers of each stopped CPU and disable 166 * per-CPU features such as virtualization extensions. 194 * as saving register state for crash dump. 253 * and then performs the secondary CPUs shutdown - we cannot have 259 /* Temporary allow non-panic CPUs to write their backtraces. */ in panic_other_cpus_shutdown() 268 * situation. If we want to do crash dump after notifier calls in panic_other_cpus_shutdown() [all …]
|
/linux/arch/arm/kernel/ |
H A D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2009 Russell King 80 frame = ((unsigned long *)frame)[-2] - 4; in dump_backtrace_entry() 104 for (reg = 10, x = 0, p = str; reg >= 0; reg--) { in dump_backtrace_stm() 106 p += sprintf(p, " r%d:%08x", reg, *stack--); in dump_backtrace_stm() 121 * physical memory. If it is not there, then we can't dump 129 return -EFAULT; in verify_stack() 136 * Dump out the contents of some memory nicely... 151 str[sizeof(str) - 1] = '\0'; in dump_mem() 175 * Note that we now dump the code first, just in case the backtrace in dump_instr() [all …]
|
/linux/Documentation/admin-guide/sysctl/ |
H A 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`_. 170 %d dump mode, matches ``PR_SET_DUMPABLE`` and [all …]
|
/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | console-badness.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 7 # Usage: console-badness.sh 13 …-E 'Badness|WARNING:|Warn|BUG|===========|BUG: KCSAN:|Call Trace:|Oops:|detected stalls on CPUs/ta… 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'
|
H A 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="`mktemp -d ${TMPDIR-/tmp}/parse-console.sh.XXXXXX`" 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/sound/soc/sof/amd/ |
H A D | acp-common.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 11 /* ACP-specific Common code */ 13 #include "../sof-priv.h" 14 #include "../sof-audio.h" 17 #include "acp-dsp-offset.h" 21 * amd_sof_ipc_dump() - This function is called when IPC tx times out. 26 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in amd_sof_ipc_dump() 27 u32 base = desc->dsp_intr_base; in amd_sof_ipc_dump() 28 u32 dsp_msg_write = sdev->debug_box.offset + in amd_sof_ipc_dump() 30 u32 dsp_ack_write = sdev->debug_box.offset + in amd_sof_ipc_dump() [all …]
|
/linux/include/linux/ |
H A 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/arch/powerpc/kernel/ |
H A 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 …]
|
H A D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 4 * Copyright 2007-2010 Freescale Semiconductor, Inc. 11 * This file handles the architecture-dependent parts of hardware exceptions 58 #include <asm/ppc-opcode.h> 64 #include <asm/asm-prototypes.h> 122 props = &pmac_backlight->props; in pmac_backlight_unblank() 123 props->brightness = props->max_brightness; in pmac_backlight_unblank() 124 props->power = BACKLIGHT_POWER_ON; in pmac_backlight_unblank() 134 * If oops/die is expected to crash the machine, return true here. [all …]
|
/linux/arch/x86/kernel/ |
H A 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/tools/testing/selftests/lkdtm/ |
H A 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/Documentation/arch/s390/ |
H A 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/arch/arm/mm/ |
H A 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> 34 return addr >= TASK_SIZE && ULONG_MAX - addr >= size; in copy_from_kernel_nofault_allowed() 38 * This is useful to dump out the page tables associated with 136 pr_alert("8<--- cut here ---\n"); in die_kernel_fault() 142 die("Oops", regs, fsr); in die_kernel_fault() 148 * Oops. The kernel tried to access some page that wasn't present. 162 * No handler, we'll have to terminate things with extreme prejudice. in __do_kernel_fault() 193 pr_err("8<--- cut here ---\n"); in __do_user_fault() [all …]
|
/linux/arch/sh/mm/ |
H A 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/drivers/hv/ |
H A D | hv_common.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Hyper-V. This file is specifically for code that must be 6 * built-in to the kernel image when CONFIG_HYPERV is set 29 #include <linux/dma-map-ops.h> 31 #include <asm/hyperv-tlfs.h> 36 * Hyper-V specific globals so they are shared across all architectures and are 69 * Hyper-V specific initialization and shutdown code that is 95 * the guest page size may not be the same as the Hyper-V page 96 * size. We depend upon kmalloc() aligning power-of-two size 98 * allocated memory appears to Hyper-V as a page of the size [all …]
|