forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/g…
…it/aegl/linux-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] tioca: Fix assignment from incompatible pointer warnings [IA64] mca.c: Fix cast from integer to pointer warning [IA64] setup.c Typo fix "Architechtuallly" [IA64] Add CONFIG_MISC_DEVICES=y to configs that need it. [IA64] disable interrupts at end of ia64_mca_cpe_int_handler() [IA64] Add DMA_ERROR_CODE define. pstore: fix build warning for unused return value from sysfs_create_file pstore: X86 platform interface using ACPI/APEI/ERST pstore: new filesystem interface to platform persistent storage
- Loading branch information
Showing
19 changed files
with
766 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Where: /dev/pstore/... | ||
Date: January 2011 | ||
Kernel Version: 2.6.38 | ||
Contact: [email protected] | ||
Description: Generic interface to platform dependent persistent storage. | ||
|
||
Platforms that provide a mechanism to preserve some data | ||
across system reboots can register with this driver to | ||
provide a generic interface to show records captured in | ||
the dying moments. In the case of a panic the last part | ||
of the console log is captured, but other interesting | ||
data can also be saved. | ||
|
||
# mount -t pstore - /dev/pstore | ||
|
||
$ ls -l /dev/pstore | ||
total 0 | ||
-r--r--r-- 1 root root 7896 Nov 30 15:38 dmesg-erst-1 | ||
|
||
Different users of this interface will result in different | ||
filename prefixes. Currently two are defined: | ||
|
||
"dmesg" - saved console log | ||
"mce" - architecture dependent data from fatal h/w error | ||
|
||
Once the information in a file has been read, removing | ||
the file will signal to the underlying persistent storage | ||
device that it can reclaim the space for later re-use. | ||
|
||
$ rm /dev/pstore/dmesg-erst-1 | ||
|
||
The expectation is that all files in /dev/pstore | ||
will be saved elsewhere and erased from persistent store | ||
soon after boot to free up space ready for the next | ||
catastrophe. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
What: /sys/fs/pstore/kmsg_bytes | ||
Date: January 2011 | ||
Kernel Version: 2.6.38 | ||
Contact: "Tony Luck" <[email protected]> | ||
Description: | ||
Controls amount of console log that will be saved | ||
to persistent store on oops/panic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,3 +208,4 @@ CONFIG_MAGIC_SYSRQ=y | |
CONFIG_DEBUG_KERNEL=y | ||
CONFIG_DEBUG_MUTEXES=y | ||
CONFIG_CRYPTO_MD5=y | ||
CONFIG_MISC_DEVICES=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
config PSTORE | ||
bool "Persistant store support" | ||
default n | ||
help | ||
This option enables generic access to platform level | ||
persistent storage via "pstore" filesystem that can | ||
be mounted as /dev/pstore. Only useful if you have | ||
a platform level driver that registers with pstore to | ||
provide the data, so you probably should just go say "Y" | ||
(or "M") to a platform specific persistent store driver | ||
(e.g. ACPI_APEI on X86) which will select this for you. | ||
If you don't have a platform persistent store driver, | ||
say N. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# Makefile for the linux pstorefs routines. | ||
# | ||
|
||
obj-y += pstore.o | ||
|
||
pstore-objs += inode.o platform.o |
Oops, something went wrong.