Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-6.6/fs/pstore/
DKconfig2 config PSTORE config
7 persistent storage via "pstore" filesystem that can
8 be mounted as /dev/pstore. Only useful if you have
9 a platform level driver that registers with pstore to
19 depends on PSTORE
28 depends on PSTORE
31 Defines default size of pstore kernel log storage.
35 bool "Pstore compression (deflate)"
36 depends on PSTORE
41 Whether pstore records should be compressed before being written to
[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
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 …]
Dram.c15 #include <linux/pstore.h>
113 struct pstore_info pstore; member
464 .pstore = {
849 cxt->pstore.data = cxt; in ramoops_probe()
856 cxt->pstore.flags = 0; in ramoops_probe()
858 cxt->pstore.flags |= PSTORE_FLAGS_DMESG; in ramoops_probe()
859 cxt->pstore.max_reason = pdata->max_reason; in ramoops_probe()
862 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE; in ramoops_probe()
864 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE; in ramoops_probe()
866 cxt->pstore.flags |= PSTORE_FLAGS_PMSG; in ramoops_probe()
[all …]
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
1104 .pstore = {
1287 * register_pstore_zone() - register to pstore/zone
1340 * if no @read, pstore may mount failed. in register_pstore_zone()
1341 * if no @write, pstore do not support to remove record file. in register_pstore_zone()
1371 cxt->pstore.bufsize = cxt->kpszs[0]->buffer_size - in register_pstore_zone()
[all …]
/kernel/linux/linux-5.10/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
20 depends on PSTORE
28 depends on PSTORE
35 depends on PSTORE
42 depends on PSTORE
49 depends on PSTORE
56 depends on PSTORE
[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
111 * @pstore: structure for pstore
142 struct pstore_info pstore; member
601 * @cxt: the context of pstore/zone
1125 .pstore = {
1319 * register_pstore_zone() - register to pstore/zone
1369 * if no @read, pstore may mount failed. in register_pstore_zone()
1370 * if no @write, pstore do not support to remove record file. in register_pstore_zone()
1401 cxt->pstore.bufsize = cxt->kpszs[0]->buffer_size - in register_pstore_zone()
[all …]
Dram.c15 #include <linux/pstore.h>
111 struct pstore_info pstore; member
462 .pstore = {
835 cxt->pstore.data = cxt; in ramoops_probe()
842 cxt->pstore.flags = 0; in ramoops_probe()
844 cxt->pstore.flags |= PSTORE_FLAGS_DMESG; in ramoops_probe()
845 cxt->pstore.max_reason = pdata->max_reason; in ramoops_probe()
848 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE; in ramoops_probe()
850 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE; in ramoops_probe()
852 cxt->pstore.flags |= PSTORE_FLAGS_PMSG; in ramoops_probe()
[all …]
/kernel/linux/linux-5.10/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.
69 1. <device name> MTD device name. "pstore" is recommended.
79 space except other pstore front-ends.
[all …]
/kernel/linux/linux-6.6/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/
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dpstore1 What: /sys/fs/pstore/... (or /dev/pstore/...)
14 # mount -t pstore -o kmsg_bytes=8000 - /sys/fs/pstore
16 $ ls -l /sys/fs/pstore/
30 $ rm /sys/fs/pstore/dmesg-erst-1
32 The expectation is that all files in /sys/fs/pstore/
38 data saved on each oops/panic. Pstore saves (possibly
43 Pstore only supports one backend at a time. If multiple
45 set by passing the pstore.backend= argument to the kernel at
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/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`
/kernel/linux/linux-6.6/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`
/kernel/linux/linux-6.6/drivers/staging/blackbox/
DKconfig35 bool "blackbox use pstore blk for debug"
39 If Y, this enables pstore blk for blackbox.
42 tristate "blackbox fault log storage by pstore blk"
48 This option enables saving fault logs with pstore blk by blackbox when a
49 panic occurs. It depends on supporting pstore blk. Especially, flash
54 tristate "blackbox fault log storage by pstore ram"
60 This option enables saving fault logs with pstore ram by blackbox when a
61 panic occurs. It depends on supporting pstore ram.
/kernel/linux/linux-5.10/drivers/staging/blackbox/
DKconfig35 bool "blackbox use pstore blk for debug"
39 If Y, this enables pstore blk for blackbox.
42 tristate "blackbox fault log storage by pstore blk"
48 This option enables saving fault logs with pstore blk by blackbox when a
49 panic occurs. It depends on supporting pstore blk. Especially, flash
54 tristate "blackbox fault log storage by pstore ram"
60 This option enables saving fault logs with pstore ram by blackbox when a
61 panic occurs. It depends on supporting pstore ram.
/kernel/linux/linux-5.10/include/linux/
Dpstore_blk.h7 #include <linux/pstore.h>
26 * struct pstore_blk_info - pstore/blk registration details
28 * @major: Which major device number to support with pstore/blk
29 * @flags: The supported PSTORE_FLAGS_* from linux/pstore.h.
34 * @devt: The dev_t that pstore/blk has attached to.
43 /* Filled in by pstore/blk after registration. */
53 * struct pstore_device_info - back-end pstore/blk driver structure.
55 * @total_size: The total size in bytes pstore/blk can use. It must be greater
58 * linux/pstore.h. It means what front-ends this device support.
Dpstore.h3 * Persistent Storage - pstore.h
24 * pstore record types (see fs/pstore/platform.c for pstore_type_names[])
53 * struct pstore_record - details of a pstore record entry
54 * @psi: pstore backend driver information
55 * @type: pstore record type
87 * struct pstore_info - backend pstore driver structure
112 * Notify backend that pstore is starting a full read of backend
120 * Notify backend that pstore has finished a full read of backend
126 * Returns 0 on success, and non-zero on error. (Though pstore will
/kernel/linux/linux-5.10/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, int op, in chunk_io()
268 static chunk_t area_location(struct pstore *ps, chunk_t area) in area_location()
273 static void skip_metadata(struct pstore *ps) in skip_metadata()
285 static int area_io(struct pstore *ps, int op, int op_flags) in area_io()
292 static void zero_memory_area(struct pstore *ps) in zero_memory_area()
297 static int zero_disk_area(struct pstore *ps, chunk_t area) in zero_disk_area()
303 static int read_header(struct pstore *ps, int *new_snapshot) in read_header()
[all …]
/kernel/linux/linux-6.6/drivers/md/
Ddm-snap-persistent.c105 struct pstore { struct
170 static int alloc_area(struct pstore *ps) in alloc_area() argument
205 static void free_area(struct pstore *ps) in free_area()
232 static int chunk_io(struct pstore *ps, void *area, chunk_t chunk, blk_opf_t opf, in chunk_io()
270 static chunk_t area_location(struct pstore *ps, chunk_t area) in area_location()
275 static void skip_metadata(struct pstore *ps) in skip_metadata()
288 static int area_io(struct pstore *ps, blk_opf_t opf) in area_io()
295 static void zero_memory_area(struct pstore *ps) in zero_memory_area()
300 static int zero_disk_area(struct pstore *ps, chunk_t area) in zero_disk_area()
306 static int read_header(struct pstore *ps, int *new_snapshot) in read_header()
[all …]
/kernel/linux/linux-6.6/include/linux/
Dpstore.h3 * Persistent Storage - pstore.h
24 * pstore record types (see fs/pstore/platform.c for pstore_type_names[])
53 * struct pstore_record - details of a pstore record entry
54 * @psi: pstore backend driver information
55 * @type: pstore record type
63 * kfree()d by the pstore core if non-NULL
91 * struct pstore_info - backend pstore driver structure
116 * Notify backend that pstore is starting a full read of backend
124 * Notify backend that pstore has finished a full read of backend
130 * Returns 0 on success, and non-zero on error. (Though pstore will

12345