From owner-freebsd-mips@FreeBSD.ORG Wed Jun 1 10:18:53 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 C9655106566C for ; Wed, 1 Jun 2011 10:18:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 817078FC19 for ; Wed, 1 Jun 2011 10:18:53 +0000 (UTC) Received: by yie12 with SMTP id 12so3218148yie.13 for ; Wed, 01 Jun 2011 03:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Yp9E6aIbWj4/AchPvkwpSNj6sw7c0pAUpT59CkQZlqw=; b=WU2DCBbUuh7HnyQgJuz690Z1G0GZDpDMUTgbfahQOhezZla3EBvi16jX2QDr44QjxM XjM2pqzrB8ZptxOm36r8liiIcsYfFs6hlN1Atem1T14XoZBbAH9MU2vt4ijHPEgHIcIb /CnLqjUjPBOB2NuRnKnOKazZI71DNc6VV9HvM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=vQVGORYoth+A44Q9uKz4UCJc0KWguvc5snDUYpammxnQYxcOqSLrL7EHX5z6qYskWy NPz3tiGDuE7/eHj20yZ7gZJ1SFDLHBc1IvH/68Bs2Zj4s7xW62qDG2EIW4Qe7ENmpZAz 3kk47SqZcjkvxoaapQ0E+ylGpptoF3yHHoU7w= MIME-Version: 1.0 Received: by 10.150.63.19 with SMTP id l19mr6476750yba.71.1306923530923; Wed, 01 Jun 2011 03:18:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.107.15 with HTTP; Wed, 1 Jun 2011 03:18:50 -0700 (PDT) In-Reply-To: <6BA5EFDB-BB82-49D6-A253-F8917BBD9C9A@bsdimp.com> References: <6BA5EFDB-BB82-49D6-A253-F8917BBD9C9A@bsdimp.com> Date: Wed, 1 Jun 2011 18:18:50 +0800 X-Google-Sender-Auth: U4zEhndV8RZir_AX07BK59-2ezU Message-ID: From: Adrian Chadd To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: George Neville-Neil , 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: Wed, 01 Jun 2011 10:18:53 -0000 The hwpmc counters are there but the hooks into the trap frame and interrupt handling aren't. Adrian On 31 May 2011 22:53, Warner Losh wrote: > Hey Adrian > > I thought that gnn@ did some work here for mips24ish cores. =A0George? > > Warner > > On May 31, 2011, at 4:08 AM, Adrian Chadd wrote: > >> On 31 May 2011 18:00, Adrian Chadd wrote: >> >>> 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. >> >> To prove I'm not completely slack, I went spelunking through the >> source to see how hwpmc hooks into things. >> >> There's no HWPMC_HOOKS used anywhere in sys/mips/* or sys/mips/*/*, >> save config files. >> >> I thus have a feeling the hwpmc glue for sampling mode just isn't >> there for any MIPS core at the present time. >> >> Would someone more versed in the ways of MIPS stack frame magic and >> trap handling care to take a stab at it? >> >> Thanks, >> >> >> 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" >> >> > >