On 04-Mar-01 The Hermit Hacker wrote:
>
> Well, after some hurdles with getting the serial console to work, I've now
> go it to work ... I put the two sysctl commands into a file so that I
> could run it as a script:
>
>#!/bin/sh
> sysctl -w debug.ktr.mask=0x1208
> sysctl -w debug.ktr.verbose=2
>
> When I 'try' to run it, I get all the 'KTR'(?) messages on my serial
> console, something is changing/happening so fast that my ssh connection
> into the machine hangs before I finish typing in the shell script:
>
> ========
> enable_kernel_debug: 3 lines, 72 characters.
> thelab# !./
> ========
Put the sysctl's and the command that hangs the machine into one script and run
that one shell script..
> needless to say, running the command to hang the computer is proving
> difficult :)
>
> Then again, if I do a cold boot of the machine, the messages stop
> scrolling up the console, but a cut-n-paste of them is sort of illegible:
>
> ========
> k0clo.c/k...c/.k4e3r8n /RkEeLr n(_scplionc)k .scch2e0d9 lRoEcLk
> (s[p0xicn0) 32c1al1l8o0]ut r[=00x ca0t 31.d./8.2.0/] ker=r0n/ akte
> r.n._c/l.o./ckk.ecrn:4/k3e8r
> e_cpluo1c k..c/:.2.0/9k
> rcnp/uk0e r.n./.l.o/ckke.rcn./3k5e0r nG_OcTl o(cskp.icn.)2 0s3c
> hGeOdT l(oscpki n[)0 xccall2o1u1t8 0[]0 xrc=003 1adt8 2.0.]/ ..0/k aertn
> ./.k/er..n_/ckllorcnk/.kecr:n35_0c
> .ok.uc1: 2.0.3/
> .c/pkue0r.n/.k/.er./n_kcelrnoc/kke.crn.4_c38l ocRkEL. c(.s2p09in )R
> ELs ch(sepd iln)oc kc al[0loxuct03 [210x18c003] 1rd=802 0a] t r=..0/ a..t
> /.k.er/.n./.ckerenrn_c/lkoerckn_.ccl:4oc3k8
> :20u91
> .c.p/u.0. /.k.e/r.n.//kkeerrnn_/ckleorcnk_.ccl.o3c5k0. cG.O2T0 3(
> sGpOiTn )( sspcihne)d claolclko u[t0 x[c00x3213118d08]2 0r]= 0r =a0t a.t.
> /....//.k.e/0ke/rkne/rkne_rcnl_occlko.cck:.3c5:02
> p3c
> uc1p u.0. /....//.k.e/rkne/rkne/rkne_rcnl_occlko.cck..4c3.82 RE LR
> E(Ls p(isnp)i ns)c hceadl lloouctk [[00xxcc003312d1812800]] rr==00 aatt
> ....//....//kkeerrnn//kkeerrnn__cclloocckk..cc::24398
>
> ccppuu01 ....//....//kkeerrnn//kkeerrnn__cclloocckk..cc..230530
> GGOOTT ((ssppiinn)) csaclhleodu tl o[c0kx c[003x1cd0832201]1 8r0=]0 ra=t0
> .a.t
> ========
Hmm, it's colliding with itself a lot. Unfortunately, to make this useful over
the serial console, you need to shut up all the sio lock messages. Hmmm, well
for now try just using a 'debug.ktr.mask' of 0x1200 to skip all the mutex
operations. If we need them later on, then I will try and get some other work
done to make it easier to shut up certain mutexes in the log output without
having to change each individual mutex operation.
--
John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message