From owner-freebsd-mips@FreeBSD.ORG Thu Jun 2 23:11:55 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1E1C106566C; Thu, 2 Jun 2011 23:11:55 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) by mx1.freebsd.org (Postfix) with ESMTP id 921188FC0C; Thu, 2 Jun 2011 23:11:55 +0000 (UTC) Received: from [209.249.190.124] (helo=gnnmac.hudson-trading.com) by vps.hungerhost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QSA7G-00035I-1e; Thu, 02 Jun 2011 11:47:22 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: George Neville-Neil In-Reply-To: Date: Thu, 2 Jun 2011 11:47:21 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <6BA5EFDB-BB82-49D6-A253-F8917BBD9C9A@bsdimp.com> To: Adrian Chadd X-Pgp-Agent: GPGMail 1.3.3 X-Mailer: Apple Mail (2.1084) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com Cc: freebsd-mips@freebsd.org Subject: Re: hwpmc and mips? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2011 23:11:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jun 1, 2011, at 06:18 , Adrian Chadd wrote: > The hwpmc counters are there but the hooks into the trap frame and > interrupt handling aren't. >=20 Yes, the counters work but that's about it. I've been too busy with my = day job to do much on this at all, and I don't know when I'd get back to it. The basic framework to get other MIPS counters going is there, but, as I = have noticed from reading over various hardware manuals, counters on MIPS = diverge even more than they do between x86 variants. Each one is going to be = annoyingly different. Sorry I can't be of more help on this at the moment. Best, George >=20 >=20 > Adrian >=20 > On 31 May 2011 22:53, Warner Losh wrote: >> Hey Adrian >>=20 >> I thought that gnn@ did some work here for mips24ish cores. George? >>=20 >> Warner >>=20 >> On May 31, 2011, at 4:08 AM, Adrian Chadd wrote: >>=20 >>> On 31 May 2011 18:00, Adrian Chadd wrote: >>>=20 >>>> I'm likely going to look at this sometime after July (and I'm sure >>>> it's just a case of hooking into the right IRQ handler) but if = someone >>>> beat me to it *hint*, I'd very much appreciate it. >>>=20 >>> To prove I'm not completely slack, I went spelunking through the >>> source to see how hwpmc hooks into things. >>>=20 >>> There's no HWPMC_HOOKS used anywhere in sys/mips/* or sys/mips/*/*, >>> save config files. >>>=20 >>> I thus have a feeling the hwpmc glue for sampling mode just isn't >>> there for any MIPS core at the present time. >>>=20 >>> Would someone more versed in the ways of MIPS stack frame magic and >>> trap handling care to take a stab at it? >>>=20 >>> Thanks, >>>=20 >>>=20 >>> Adrian >>> _______________________________________________ >>> freebsd-mips@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >>> To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" >>>=20 >>>=20 >>=20 >>=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAk3nsIkACgkQYdh2wUQKM9LNcACeIV+equhS0gG0uKhHpLzONe0R aGMAn2AFk8kbhau1wgQNSOHzdlrd6nHH =3DkLTq -----END PGP SIGNATURE-----