Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2004 12:56:36 -0600
From:      Ryan Beasley <ryanb@goddamnbastard.org>
To:        freebsd-hackers@freebsd.org
Subject:   p_[usi]ticks from userland without kvm and procfs?
Message-ID:  <20040114185636.GA60885@uberhacker.org>

next in thread | raw e-mail | index | archive | help

--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                            <ryanb@goddamnbastard.org>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040114185636.GA60885>