Date: 22 Nov 2001 23:18:01 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: Julian Elischer <julian@elischer.org>, Mike Smith <msmith@freebsd.org>, John Baldwin <jhb@freebsd.org>, arch@freebsd.org Subject: Re: Kernel Thread scheduler Message-ID: <xzpsnb6xxeu.fsf@flood.ping.uio.no> In-Reply-To: <20011122140835.A96598@troutmask.apl.washington.edu> References: <200111221142.fAMBgvh11425@mass.dis.org> <Pine.BSF.4.21.0111221353230.44466-100000@InterJet.elischer.org> <20011122140835.A96598@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Steve Kargl <sgk@troutmask.apl.washington.edu> writes: > Certainly, a debugger would need to know about a process. > I suspect ps, ptrace, and a few others also need some > knowledge about struct proc. No, struct kinfo_proc mostly. > libkvm/kvm_getswapinfo.c -o kvm_getswapinfo.So > cc -O -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -I/usr/obj/usr/src/i386/usr/include -c /usr/src/lib/libkvm/kvm_proc.c -o kvm_proc.o > cc -fpic -DPIC -O -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -I/usr/obj/usr/src/i386/usr/include -c /usr/src/lib/libkvm/kvm_proc.c -o kvm_proc.So > /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist': > /usr/src/lib/libkvm/kvm_proc.c:120: storage size of `proc' isn't known > /usr/src/lib/libkvm/kvm_proc.c:121: storage size of `pproc' isn't known > /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist': > /usr/src/lib/libkvm/kvm_proc.c:120: storage size of `proc' isn't known > /usr/src/lib/libkvm/kvm_proc.c:121: storage size of `pproc' isn't known This is probably bogus. Top(1) also bogusly stores struct kinfo_proc * as struct proc *, though the code that dereferences the pointers casts them back. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpsnb6xxeu.fsf>