From owner-freebsd-arch Thu Nov 22 14:18: 8 2001 Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 1B2D037B405; Thu, 22 Nov 2001 14:18:05 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id CDEBC14C2E; Thu, 22 Nov 2001 23:18:02 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Steve Kargl Cc: Julian Elischer , Mike Smith , John Baldwin , arch@freebsd.org Subject: Re: Kernel Thread scheduler References: <200111221142.fAMBgvh11425@mass.dis.org> <20011122140835.A96598@troutmask.apl.washington.edu> From: Dag-Erling Smorgrav Date: 22 Nov 2001 23:18:01 +0100 In-Reply-To: <20011122140835.A96598@troutmask.apl.washington.edu> Message-ID: Lines: 24 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Steve Kargl 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