diff options
author | WeiXiong Liao <liaoweixiong@allwinnertech.com> | 2020-03-25 11:55:00 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-05-30 20:34:03 +0300 |
commit | cc9c4d1b5597167f8e8c92f6b61e1cda6d01884d (patch) | |
tree | e85923479c50fbc727359bd5add5bfd5581ab040 /fs/pstore/Kconfig | |
parent | 0dc068265a1c5923ffebf40388fbe93050a77ad1 (diff) | |
download | linux-cc9c4d1b5597167f8e8c92f6b61e1cda6d01884d.tar.xz |
pstore/zone,blk: Add console frontend support
Support backend for console. To enable console backend, just make
console_size be greater than 0 and a multiple of 4096.
Signed-off-by: WeiXiong Liao <liaoweixiong@allwinnertech.com>
Link: https://lore.kernel.org/lkml/20200511233229.27745-5-keescook@chromium.org/
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/Kconfig')
-rw-r--r-- | fs/pstore/Kconfig | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig index ef01c48f0ff7..126aa6c3ecf2 100644 --- a/fs/pstore/Kconfig +++ b/fs/pstore/Kconfig @@ -180,11 +180,11 @@ config PSTORE_BLK_BLKDEV help Which block device should be used for pstore/blk. - It accept the following variants: + It accepts the following variants: 1) <hex_major><hex_minor> device number in hexadecimal representation, with no leading 0x, for example b302. - 2) /dev/<disk_name> represents the device number of disk - 3) /dev/<disk_name><decimal> represents the device number + 2) /dev/<disk_name> represents the device name of disk + 3) /dev/<disk_name><decimal> represents the device name and number of partition - device number of disk plus the partition number 4) /dev/<disk_name>p<decimal> - same as the above, this form is used when disk name of partitioned disk ends with a digit. @@ -236,3 +236,15 @@ config PSTORE_BLK_PMSG_SIZE NOTE that, both Kconfig and module parameters can configure pstore/blk, but module parameters have priority over Kconfig. + +config PSTORE_BLK_CONSOLE_SIZE + int "Size in Kbytes of console log to store" + depends on PSTORE_BLK + depends on PSTORE_CONSOLE + default 64 + help + This just sets size of console log (console_size) to store via + pstore/blk. The size is in KB and must be a multiple of 4. + + NOTE that, both Kconfig and module parameters can configure + pstore/blk, but module parameters have priority over Kconfig. |