[PATCH] kdump: export per cpu crash notes pointer through sysfs
authorVivek Goyal <vgoyal@in.ibm.com>
Tue, 10 Jan 2006 04:51:42 +0000 (20:51 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:26 +0000 (08:01 -0800)
commit51be5606d9ff9eb27ed6514f6172fbd7578a25d6
tree8020841fc1eb4fa4603870913385eb9253de7d2e
parentcc57165874e938ef684d71ba7d36e7088b551489
[PATCH] kdump: export per cpu crash notes pointer through sysfs

- Kexec on panic functionality allocates memory for saving cpu registers in
  case of system crash event.  Address of this allocated memory needs to be
  exported to user space, which is used by kexec-tools.

- Previously, a single /sys/kernel/crash_notes entry was being exported as
  memory allocated was a single continuous array.  Now memory allocation being
  dyanmic and per cpu based, address of per cpu buffer is exported through
  "/sys/devices/system/cpu/cpuX/crash_notes"

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/base/cpu.c
kernel/ksysfs.c