From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 14 10:56:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 150BA16A4CE for ; Wed, 14 Jan 2004 10:56:39 -0800 (PST) Received: from pds.uberhacker.org (uberhacker.org [198.144.198.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE2A043D67 for ; Wed, 14 Jan 2004 10:56:37 -0800 (PST) (envelope-from ryanb@goddamnbastard.org) Received: from localhost (localhost [127.0.0.1]) by pds.uberhacker.org (Postfix) with ESMTP id 6E65326D for ; Wed, 14 Jan 2004 10:56:37 -0800 (PST) Received: from pds.uberhacker.org ([127.0.0.1]) by localhost (pds.uberhacker.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90597-04 for ; Wed, 14 Jan 2004 10:56:36 -0800 (PST) Received: by pds.uberhacker.org (Postfix, from userid 1003) id 3C9D5229; Wed, 14 Jan 2004 10:56:36 -0800 (PST) Date: Wed, 14 Jan 2004 12:56:36 -0600 From: Ryan Beasley To: freebsd-hackers@freebsd.org Message-ID: <20040114185636.GA60885@uberhacker.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at uberhacker.org Subject: p_[usi]ticks from userland without kvm and procfs? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 18:56:39 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, -hackers! I'm poring over some code that uses the p_[usi]ticks counters inside of struct proc. This is fine under 4.x where kinfo_proc includes a copy of proc, but is broken under 5.x since a commit 3 years ago that reorganized kinfo_proc. So, outside of kvm and procfs, is there any user<->kernel interface for getting to struct proc or just those counters? (getrusage is kinda close except one can't lookup info about another process. :|. ) Any info is welcome. TIA! --=20 ryan beasley GPG ID: 0x16EFBD48 --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFABZDkskfdOxbvvUgRAgC7AJ4p92rziBLdhCQLsL5ETlHEWCUjYgCfQBJu u+rXWDcki2i2seCTq2q68Mg= =wbfq -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--