From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 13:49:09 2010 Return-Path: Delivered-To: embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7193C1065670; Thu, 18 Feb 2010 13:49:09 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [64.13.141.3]) by mx1.freebsd.org (Postfix) with ESMTP id 57E748FC16; Thu, 18 Feb 2010 13:49:09 +0000 (UTC) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id o1IDlKAT075296; Thu, 18 Feb 2010 05:47:20 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from gnnmac.hudson-trading.com (smtp.hudson-trading.com [209.249.190.9]) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.3) with ESMTP id o1IDlJg5094250 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 18 Feb 2010 05:47:20 -0800 (PST) (envelope-from gnn@neville-neil.com) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: George Neville-Neil In-Reply-To: <20100217.220444.705053590986461614.imp@bsdimp.com> Date: Thu, 18 Feb 2010 08:47:16 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <614621A8-E7C4-4647-B009-5BDBF0CC26CB@neville-neil.com> References: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> <20100217.220444.705053590986461614.imp@bsdimp.com> To: "M. Warner Losh" X-Mailer: Apple Mail (2.1077) Cc: jkoshy@FreeBSD.org, embedded@FreeBSD.org, fabient@FreeBSD.org Subject: Re: First cut at hwpmc support on MIPS X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 13:49:09 -0000 On Feb 18, 2010, at 00:04 , M. Warner Losh wrote: > In message: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> > George Neville-Neil writes: > : Hi, > :=20 > : I've got this running on my RouterStation Pro, which is a MIPS 24K = (32bit) CPU. > : Please review and let me know if you have comments. I'd like to = commit this > : in a week or so. > :=20 > : Best, > : George > :=20 > : http://people.freebsd.org/~gnn/mipshwpmc_1.diff >=20 > These counters are for the MIPS 24K. Other counters exist on other > MIPS processors, so I'd think that you'd want to have at least the > name be something less generic. I hate to complain about the name, > but I know that the Octeon counters are on the roadmap for some work > that is likely going to happen. Plus I think Randal was making noises > that he or one of the RMI guys was going to do something similar for > the XLR CPU. Yes, I was originally thinking MIPS24K, but then I thought that too specific. Can anyone point me to a site or docs that give an idea of how the MIPS architectures differ so I can come up with a somewhat intelligent naming scheme? I figure the easiest thing to do for these counters is move to MIPS_24K, must like we have INTEL_FOO. Best, George