Hi,
I have a machine which has been locked
up by what we suspect to be a hardware
or firmware bug. We have our custom
GDB adapter pointed at it, so we
can read whatever kernel variables
we want, but we can't call functions
(similar to running GDB on a core file).
What I would like to do is dump
any pages which happen to be caching
parts of /var/log/messages. So
my question is how to do that?
In pseudocode, I imagine it would
be something like this:
1. search through an in-memory inode
cache for /var/log/messages's inode
2. look at every page in the buffer
cache and if it is shown to be
caching the file with the above
inode, dump it
I can handle the GDB scripting, but
I'm having trouble finding which
pointers I should be following to
find the above-named structures (assuming
such things exist).
Thanks,
Sean
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ