From owner-freebsd-mips@FreeBSD.ORG Tue May 31 10:08:28 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 51302106564A for ; Tue, 31 May 2011 10:08:28 +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 0DF498FC19 for ; Tue, 31 May 2011 10:08:27 +0000 (UTC) Received: by yie12 with SMTP id 12so2511940yie.13 for ; Tue, 31 May 2011 03:08:27 -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:content-type; bh=oO1nMM4hvNReqMhae/nGz+vaGblFYrGseOsH/5Y9OMc=; b=Rs7Vx6LcOYkeNdLpTMeGgiE+g9SaJay6rZPR5rfEaWK/RycwGrhgwjnEnkHit1bZb9 KjUsXd7E0Cku1lgzIF0j4XY1IO9FPr0idyDx0p2d+4uXUHbQD5N4YBxl62hpHRqpnFMy Flq6ybCZgvh7ftvgTBctiU46WYhNLYqUwp0DQ= 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:content-type; b=uILIsDCZRO8/hFlMH7RCOSojQS2RaBRq0/b18NQBFreBLsz/RCZO36HvuznbYX0qgO DscRzBYcibnI91Jr9QjQbmP4r2rPCOrfOgzjaH3efR35XrAolCbIixAmcStJHho+2M69 FG5xr3noTk2r1/En4cYSLtyYKPP6z6di0J7ZQ= MIME-Version: 1.0 Received: by 10.150.63.19 with SMTP id l19mr5252662yba.71.1306836507115; Tue, 31 May 2011 03:08:27 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.107.15 with HTTP; Tue, 31 May 2011 03:08:27 -0700 (PDT) In-Reply-To: References: Date: Tue, 31 May 2011 18:08:27 +0800 X-Google-Sender-Auth: UvEdmBQKzeEEWduf-RgPDp6fNz0 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 31 May 2011 10:08:28 -0000 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