kdump: Report actual value of VMCOREINFO_OSRELEASE in VMCOREINFO
Subsystems (3)
The current implementation reports the structure name as VMCOREINFO_OSRELEASE in VMCOREINFO, e.g.
VMCOREINFO_OSRELEASE=init_uts_ns.name.release
That doesn't make sense because it's always the same. Instead, use the value, e.g.
VMCOREINFO_OSRELEASE=2.6.26-rc3
That's also what the 'makedumpfile -g' does.
include/linux/kexec.h +2 -2
@@ -127,8 +127,8 @@ void vmcoreinfo_append_str(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));unsigned long paddr_vmcoreinfo_note (void ); -#define VMCOREINFO_OSRELEASE (name) \ - vmcoreinfo_append_str("OSRELEASE=%s\n", #name) +#define VMCOREINFO_OSRELEASE (value) \ + vmcoreinfo_append_str("OSRELEASE=%s\n", value)#define VMCOREINFO_PAGESIZE (value) \ vmcoreinfo_append_str("PAGESIZE=%ld\n", value)#define VMCOREINFO_SYMBOL (name) \
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Vivek Goyal
Acked-byQuoted 19 lines · Bernhard Walle
The current implementation reports the structure name as
VMCOREINFO_OSRELEASEin VMCOREINFO, e.g.VMCOREINFO_OSRELEASE=init_uts_ns.name.release
That doesn't make sense because it's always the same. Instead, use the value, e.g.
VMCOREINFO_OSRELEASE=2.6.26-rc3That's also what the 'makedumpfile -g' does.
Signed-off-by Bernhard Walle <[email protected]>include/linux/kexec.h +0
-0
include/linux/kexec.h void vmcoreinfo_append_str(const char *fmt, ...) · line 134
Quoted 10 lines
include/linux/kexec.h +2
-2@@ -127,8 +127,8 @@ void vmcoreinfo_append_str(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));unsigned long paddr_vmcoreinfo_note (void ); -#define VMCOREINFO_OSRELEASE (name) \ - vmcoreinfo_append_str("OSRELEASE=%s\n", #name) +#define VMCOREINFO_OSRELEASE (value) \ + vmcoreinfo_append_str("OSRELEASE=%s\n", value)#define VMCOREINFO_PAGESIZE (value) \ vmcoreinfo_append_str("PAGESIZE=%ld\n", value)#define VMCOREINFO_SYMBOL (name) \
Makes sense.
Thanks
Vivek
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec