Home
last modified time | relevance | path

Searched full:pstore (Results 1 – 25 of 50) sorted by relevance

12

/Linux-v6.1/fs/pstore/
DKconfig2 config PSTORE config
8 persistent storage via "pstore" filesystem that can
9 be mounted as /dev/pstore. Only useful if you have
10 a platform level driver that registers with pstore to
19 depends on PSTORE
22 Defines default size of pstore kernel log storage.
28 depends on PSTORE
36 depends on PSTORE
43 depends on PSTORE
50 depends on PSTORE
[all …]
Dblk.c3 * Implements pstore backend driver that write to block (or non-block) storage
4 * devices, using the pstore/zone API.
57 MODULE_PARM_DESC(best_effort, "use best effort to write (i.e. do not require storage driver pstore
60 * blkdev - the block device to use for pstore storage
61 * See Documentation/admin-guide/pstore-blk.rst for details.
65 MODULE_PARM_DESC(blkdev, "block device for pstore storage");
146 * register_pstore_device() - register non-block device to pstore/blk
176 * unregister_pstore_device() - unregister non-block device from pstore/blk
241 /* get information of pstore/blk */
257 static const char devname[] = "/dev/pstore-blk";
[all …]
DMakefile6 obj-$(CONFIG_PSTORE) += pstore.o
8 pstore-objs += inode.o platform.o
9 pstore-$(CONFIG_PSTORE_FTRACE) += ftrace.o
11 pstore-$(CONFIG_PSTORE_PMSG) += pmsg.o
Dzone.c3 * Provide a pstore intermediate backend, organized into kernel memory
90 * struct psz_context - all about running state of pstore/zone
109 * @pstore: structure for pstore
138 struct pstore_info pstore; member
595 * @cxt: the context of pstore/zone
1102 .pstore = {
1285 * register_pstore_zone() - register to pstore/zone
1338 * if no @read, pstore may mount failed. in register_pstore_zone()
1339 * if no @write, pstore do not support to remove record file. in register_pstore_zone()
1369 cxt->pstore.bufsize = cxt->kpszs[0]->buffer_size - in register_pstore_zone()
[all …]
Dram.c15 #include <linux/pstore.h>
100 struct pstore_info pstore; member
439 .pstore = {
798 cxt->pstore.data = cxt; in ramoops_probe()
805 cxt->pstore.flags = 0; in ramoops_probe()
807 cxt->pstore.flags |= PSTORE_FLAGS_DMESG; in ramoops_probe()
808 cxt->pstore.max_reason = pdata->max_reason; in ramoops_probe()
811 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE; in ramoops_probe()
813 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE; in ramoops_probe()
815 cxt->pstore.flags |= PSTORE_FLAGS_PMSG; in ramoops_probe()
[all …]
Dplatform.c9 #define pr_fmt(fmt) "pstore: " fmt
18 #include <linux/pstore.h>
39 * We defer making "oops" entries appear in pstore - see
45 MODULE_PARM_DESC(update_ms, "milliseconds before pstore updates its content "
149 * In case of NMI path, pstore shouldn't be blocked in pstore_cannot_block_path()
295 /* Skip if no pstore backend yet or compression init already done. */ in allocate_buf_for_compression()
557 * us here. If pstore is already mounted, call the platform
559 * then the pstore mount code will call us later to fill out
618 * through /sys/module/pstore/parameters/backend in pstore_register()
828 * Check if any pstore backends registered earlier but did not in pstore_init()
Dinode.c23 #include <linux/pstore.h>
485 .name = "pstore",
494 /* Create a convenient mount point for people to access pstore */ in pstore_init_fs()
495 err = sysfs_create_mount_point(fs_kobj, "pstore"); in pstore_init_fs()
501 sysfs_remove_mount_point(fs_kobj, "pstore"); in pstore_init_fs()
510 sysfs_remove_mount_point(fs_kobj, "pstore"); in pstore_exit_fs()
Dinternal.h7 #include <linux/pstore.h>
48 /* Called during pstore init/exit. */
/Linux-v6.1/Documentation/admin-guide/
Dpstore-blk.rst3 pstore block oops/panic logger
9 pstore block (pstore/blk) is an oops/panic logger that writes its logs to a
11 these log files by mounting pstore filesystem like::
13 mount -t pstore pstore /sys/fs/pstore
16 pstore block concepts
19 pstore/blk provides efficient configuration method for pstore/blk, which
23 Configurations for user determine how pstore/blk works, such as pmsg_size,
46 It's required for pstore/blk. It is also used for MTD device.
48 When pstore/blk is built as a module, "blkdev" accepts the following variants:
56 When pstore/blk is built into the kernel, "blkdev" accepts the following variants:
[all …]
Dramoops.rst27 Typically the default value of ``mem_type=0`` should be used as that sets the pstore
29 ``pgprot_noncached``, which only works on some platforms. This is because pstore
138 The dump data can be read from the pstore filesystem. The format for these
140 a stored record from RAM, simply unlink the respective pstore file.
150 # echo 1 > /sys/kernel/debug/pstore/record_ftrace
153 # mount -t pstore pstore /mnt/
/Linux-v6.1/Documentation/ABI/testing/
Dpstore1 What: /sys/fs/pstore/...
2 What: /dev/pstore/...
15 # mount -t pstore -o kmsg_bytes=8000 - /sys/fs/pstore
17 $ ls -l /sys/fs/pstore/
31 $ rm /sys/fs/pstore/dmesg-erst-1
33 The expectation is that all files in /sys/fs/pstore/
39 data saved on each oops/panic. Pstore saves (possibly
44 Pstore only supports one backend at a time. If multiple
46 set by passing the pstore.backend= argument to the kernel at
/Linux-v6.1/tools/testing/selftests/pstore/
Dpstore_post_reboot_tests4 # pstore_post_reboot_tests - Check pstore's behavior after crash/reboot
22 prlog -n "Mounting pstore filesystem ... "
23 mount_info=`grep pstore /proc/mounts`
28 mount none /sys/fs/pstore -t pstore
30 mount_point=`grep pstore /proc/mounts | cut -d' ' -f2 | head -n1`
40 prlog -n "Checking dmesg files exist in pstore filesystem ... "
43 prlog -n "Checking console files exist in pstore filesystem ... "
46 prlog -n "Checking pmsg files exist in pstore filesystem ... "
76 prlog -n "Removing all files in pstore filesystem "
Dcommon_tests4 # common_tests - Shell script commonly used by pstore test scripts
57 TEST_STRING_PATTERN="Testing pstore: uuid="
73 prlog "=== Pstore unit tests (`basename $0`) ==="
76 prlog -n "Checking pstore backend is registered ... "
77 backend=`cat /sys/module/pstore/parameters/backend`
Dpstore_tests4 # pstore_tests - Check pstore's behavior before crash/reboot
12 prlog -n "Checking pstore console is registered ... "
13 dmesg | grep -Eq "console \[(pstore|${backend})"
DMakefile2 # Makefile for pstore selftests.
3 # Expects pstore backend is registered.
Dpstore_crash_test4 # pstore_crash_test - Pstore test shell script which causes crash and reboot
10 # exit if pstore backend is not registered
/Linux-v6.1/drivers/md/
Ddm-snap-persistent.c102 struct pstore { struct
167 static int alloc_area(struct pstore *ps) in alloc_area() argument
202 static void free_area(struct pstore *ps) in free_area()
229 static int chunk_io(struct pstore *ps, void *area, chunk_t chunk, blk_opf_t opf, in chunk_io()
267 static chunk_t area_location(struct pstore *ps, chunk_t area) in area_location()
272 static void skip_metadata(struct pstore *ps) in skip_metadata()
284 static int area_io(struct pstore *ps, blk_opf_t opf) in area_io()
291 static void zero_memory_area(struct pstore *ps) in zero_memory_area()
296 static int zero_disk_area(struct pstore *ps, chunk_t area) in zero_disk_area()
302 static int read_header(struct pstore *ps, int *new_snapshot) in read_header()
[all …]
/Linux-v6.1/include/linux/
Dpstore.h3 * Persistent Storage - pstore.h
24 * pstore record types (see fs/pstore/platform.c for pstore_type_names[])
51 * struct pstore_record - details of a pstore record entry
52 * @psi: pstore backend driver information
53 * @type: pstore record type
61 * kfree()d by the pstore core if non-NULL
89 * struct pstore_info - backend pstore driver structure
114 * Notify backend that pstore is starting a full read of backend
122 * Notify backend that pstore has finished a full read of backend
128 * Returns 0 on success, and non-zero on error. (Though pstore will
Dpstore_blk.h7 #include <linux/pstore.h>
11 * struct pstore_device_info - back-end pstore/blk driver structure.
14 * linux/pstore.h. It means what front-ends this device support.
Dpstore_zone.h12 * struct pstore_zone_info - pstore/zone back-end driver structure
16 * @total_size: The total size in bytes pstore/zone can use. It must be greater
Dpstore_ram.h16 #include <linux/pstore.h>
44 * used as a pstore backend
/Linux-v6.1/drivers/firmware/efi/
DKconfig11 tristate "Register efivars backend for pstore"
12 depends on PSTORE
16 Say Y here to enable use efivars as a backend to pstore. This
18 else supported by pstore to EFI variables.
21 bool "Disable using efivars as a pstore backend by default"
26 backend for pstore by default. This setting can be overridden
Defi-pstore.c5 #include <linux/pstore.h>
139 * If this is the first read() call in the pstore enumeration, in efi_pstore_read()
147 * enumerate variables with the efi-pstore GUID, there is no in efi_pstore_read()
256 MODULE_DESCRIPTION("EFI variable backend for pstore");
/Linux-v6.1/drivers/platform/chrome/
Dchromeos_pstore.c51 * range untouched across reboots, so we use that to store our pstore
137 MODULE_DESCRIPTION("ChromeOS pstore module");
/Linux-v6.1/drivers/mtd/
Dmtdpstore.c3 #define dev_fmt(fmt) "mtdoops-pstore: " fmt
234 * pstore/blk will try one by one until gets an empty zone. So, it is not
307 * All zones will be read as pstore/blk will read zone one by one when do
492 * When user remove any log file on pstore filesystem, mtdpstore should do
579 MODULE_DESCRIPTION("MTD backend for pstore/blk");

12