.../arch/i386/mm/fault.c:do_page_fault()
such a fault in user mode causes the offending address and error code to
be saved in
tsk->tss.cr2
and
tsk->tss.error_code
respectively. There do not appear to be ptrace() or /proc hooks
to extract this data directly. In earlier unices extraction of this
data would have required grubbing around in /dev/kmem using the
kernel namelist as a guide.
How should a tracer extract this information under a current
(2.2.*, 2.4.*) Linux?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/