From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16736 invoked by alias); 2 Aug 2007 08:28:41 -0000 Received: (qmail 16726 invoked by uid 22791); 2 Aug 2007 08:28:40 -0000 X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO X-Spam-Check-By: sourceware.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (83.160.170.119) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 02 Aug 2007 08:28:38 +0000 Received: from dijkstra.wildebeest.org ([192.168.1.29]) by gnu.wildebeest.org with esmtp (Exim 4.43) id 1IGW5W-0006ry-BO; Thu, 02 Aug 2007 10:31:18 +0200 Subject: Re: Make CoredumpAction use Task.getRegisterBanks() From: Mark Wielaard To: Phil Muldoon Cc: frysk@sourceware.org In-Reply-To: <46AFD351.6030004@redhat.com> References: <1185814384.3674.36.camel@dijkstra.wildebeest.org> <46AE238B.5020204@redhat.com> <1185883408.3653.106.camel@dijkstra.wildebeest.org> <46AFD351.6030004@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JkPwxsM5G/44Vj+VD5mV" Date: Thu, 02 Aug 2007 08:28:00 -0000 Message-Id: <1186043315.15044.46.camel@dijkstra.wildebeest.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) X-Spam-Score: -4.4 (----) X-Virus-Checked: Checked by ClamAV on sourceware.org X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00259.txt.bz2 --=-JkPwxsM5G/44Vj+VD5mV Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 2162 On Tue, 2007-07-31 at 19:26 -0500, Phil Muldoon wrote: > Mark Wielaard wrote: > > > > For ptrace/proc based Tasks there are basically 4 register banks (not > > all of them used on all architectures) the Isa provides a mapping from > > the actual register names to the bank and offset inside it. The four > > banks are the regular registers (gotten through PTRACE_GETREGS), the > > general floating point registers (gotten through PTRACE_GETFPREGS), the > > extended floating point registers such like sse xmm registers (gotten > > through PTRACE_getXFPREGS) and the other registers (gotten through the > > start of USR memory space) that cover things like debug control > > registers found by the Isa through the mapping in sys/user.h (some of > > the other register banks are actually also contained in this one). > > > > Does this map somewhat to how core files handle the register banks, so > > you can just dump/read these banks from them? > >=20=20=20 >=20 > Pretty much other than General Purpose registers which needs to be=20 > accessed independently via getRegisterByName(). The the rest are just=20 > dumped wholesale into the notes, and in that instance accessed via=20 > task.getRegisterBanks(). Thanks. So this seems slightly different from how we do things with ptrace/proc where we can have multiple different register banks (for floating point, extended floating point and control/debug registers). We might be able to always just use the USR address space to get at all of those together in one go (I don't actually know why we don't do that, or why ptrace provides different ways to access the same register sets). > I think, going forward access to the raw memory for each register bank,= =20 > and also a getRegisterByName() function (which is the functionality we=20 > have now) is needed, and probably will be down the line. If we can match up the raw memory for each register bank between ptrace/proc and core files from Task that would be ideal. Then the Isa can just do the getRegisterByName() mapping. I'll watch your rewrite of the core file stuff and see if this makes things easier and clearer (I guess it will). Cheers, Mark --=-JkPwxsM5G/44Vj+VD5mV Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBGsZSfxVhZCJWr9QwRAsJ0AJ9HNwg/X1pjobK17RwbkeqWWUpGmQCcD5mF +PTtdTM2rNq/n5WSvDVCa70= =cIyF -----END PGP SIGNATURE----- --=-JkPwxsM5G/44Vj+VD5mV--