linux/drivers/acpi/apei
Seiji Aguchi a9efd39cd5 efi_pstore: Add ctime to argument of erase callback
[Issue]

Currently, a variable name, which is used to identify each log entry, consists of type,
id and ctime. But an erase callback does not use ctime.

If efi_pstore supported just one log, type and id were enough.
However, in case of supporting multiple logs, it doesn't work because
it can't distinguish each entry without ctime at erasing time.

 <Example>

 As you can see below, efi_pstore can't differentiate first event from second one without ctime.

 a variable name of first event: dump-type0-1-12345678
 a variable name of second event: dump-type0-1-23456789

  type:0
  id:1
  ctime:12345678, 23456789

[Solution]

This patch adds ctime to an argument of an erase callback.

It works across reboots because ctime of pstore means the date that the record was originally stored.
To do this, efi_pstore saves the ctime to variable name at writing time and passes it to pstore
at reading time.

Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Acked-by: Mike Waychison <mikew@google.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2012-11-26 16:02:12 -08:00
..
apei-base.c ACPI, APEI: Fixup common access width firmware bug 2012-07-14 11:01:42 -04:00
apei-internal.h ACPI, APEI, Avoid too much error reporting in runtime 2012-06-12 00:17:18 -04:00
cper.c CPER failed to handle generic error records with multiple sections 2012-03-30 04:01:26 -04:00
einj.c ACPI, APEI, EINJ, new parameter to control trigger action 2012-03-30 03:30:18 -04:00
erst-dbg.c ACPI, APEI, ERST, Fix erst-dbg long record reading issue 2011-07-13 23:31:51 -04:00
erst.c efi_pstore: Add ctime to argument of erase callback 2012-11-26 16:02:12 -08:00
ghes.c ACPI, APEI, Avoid too much error reporting in runtime 2012-06-12 00:17:18 -04:00
hest.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux 2012-01-18 15:51:48 -08:00
Kconfig llist: Make some llist functions inline 2011-10-04 11:30:53 +02:00
Makefile ACPI, APEI, ERST debug support 2010-08-14 22:47:55 -04:00