--1528363763-543328843-992022813=:6565
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.32L2.0106081353531.6580@cowofdoom.com>
This is a patch to arch/alpha/kernel/traps.c which changes its oops output
to be like other architectures: Output a trace, given in a series of hex
numbers, and then output the instructions surrounding the oops, in hex
numbers.
The disassemble() function and its associated data structures and helper
functions have been removed, since ksymoops and objdump do it better
anyway.
It applies to 2.4.5-ac[67] and 2.2.19 with a bit of fuzz.
Regards,
(posting from home since Compaq doesn't do ECN,)
Will Woods
Alpha Technology Solutions Group
Compaq Computer Corp.
--1528363763-543328843-992022813=:6565
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="traps.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.32L2.0106081548500.7281@cowofdoom.com>
Content-Description:
Content-Disposition: attachment; filename="traps.diff"
LS0tIGxpbnV4L2FyY2gvYWxwaGEva2VybmVsL3RyYXBzLmMJRnJpIEp1biAg
OCAxMzowMDoxOCAyMDAxDQorKysgbGludXgtMi40LjUtYWM3LXd3L2FyY2gv
YWxwaGEva2VybmVsL3RyYXBzLmMJRnJpIEp1biAgOCAxMjo1NzoxMiAyMDAx
DQpAQCAtNjEsMjAyICs2MSw2IEBADQogCQkJICAgImEwIiwgImExIiwgImEy
IiwgImEzIiwgImE0IiwgImE1IiwgInQ4IiwgInQ5IiwNCiAJCQkgICAidDEw
IiwgInQxMSIsICJyYSIsICJwdiIsICJhdCIsICJncCIsICJzcCIsICJ6ZXJv
In07DQogDQotc3RhdGljIGNoYXIgKiBpbnN0X25hbWVbXSA9IHsiY2FsbF9w
YWwiLCAiIiwgIiIsICIiLCAiIiwgIiIsICIiLCAiIiwNCi0JImxkYSIsICJs
ZGFoIiwgImxkYnUiLCAibGRxX3UiLCAibGR3dSIsICJzdHciLCAic3RiIiwg
InN0cV91IiwNCi0JIkFMVSIsICJBTFUiLCAiQUxVIiwgIkFMVSIsICJTUVJU
IiwgIkZWQVgiLCAiRklF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NCiB9DQpAQCAtMzMxLDggKzEzNCw4IEBADQogI2VuZGlmDQogCXBy
aW50aygiJXMoJWQpOiAlcyAlbGRcbiIsIGN1cnJlbnQtPmNvbW0sIGN1cnJl
bnQtPnBpZCwgc3RyLCBlcnIpOw0KIAlkaWtfc2hvd19yZWdzKHJlZ3MsIHI5
XzE1KTsNCi0JZGlrX3Nob3dfY29kZSgodW5zaWduZWQgaW50ICopcmVncy0+
cGMpOw0KIAlkaWtfc2hvd190cmFjZSgodW5zaWduZWQgbG9uZyAqKShyZWdz
KzEpKTsNCisJZGlrX3Nob3dfY29kZSgodW5zaWduZWQgaW50ICopcmVncy0+
cGMpOw0KIA0KIAlpZiAoY3VycmVudC0+dGhyZWFkLmZsYWdzICYgKDFVTCA8
PCA2MykpIHsNCiAJCXByaW50aygiZGllX2lmX2tlcm5lbCByZWN1cnNpb24g
ZGV0ZWN0ZWQuXG4iKTsNCg==
--1528363763-543328843-992022813=:6565--
-
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/