Bradshaw, James wrote:
I apologize for this newbie question, but is there a way to search the
crash archives without having to manually download each month’s text file?
Specifically, I’m looking for any information on the following error message
crash: cannot resolve: "nr_swapfiles"
No apologies required -- that's what this list is for.
I’m not using any swap space on my target; is there a way to tell crash
that?
Not yet...
Apply the attached patch -- which I'll queue for the next release.
Thanks,
Dave
Index: memory.c
===================================================================
RCS file: /nfs/projects/cvs/crash/memory.c,v
retrieving revision 1.188
diff -u -r1.188 memory.c
--- memory.c 9 Dec 2008 16:54:12 -0000 1.188
+++ memory.c 9 Dec 2008 16:59:04 -0000
@@ -644,8 +644,9 @@
if (kernel_symbol_exists("mem_map"))
get_symbol_data("max_mapnr", sizeof(ulong), &vt->max_mapnr);
- get_symbol_data("nr_swapfiles", sizeof(unsigned int),
- &vt->nr_swapfiles);
+ if (kernel_symbol_exists("nr_swapfiles"))
+ get_symbol_data("nr_swapfiles", sizeof(unsigned int),
+ &vt->nr_swapfiles);
STRUCT_SIZE_INIT(page, "page");
STRUCT_SIZE_INIT(free_area, "free_area");
--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility