From owner-freebsd-current@FreeBSD.ORG Mon Mar 17 04:23:22 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D37C106566C for ; Mon, 17 Mar 2008 04:23:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by mx1.freebsd.org (Postfix) with ESMTP id 1E4658FC16 for ; Mon, 17 Mar 2008 04:23:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by rv-out-0910.google.com with SMTP id g13so3410817rvb.43 for ; Sun, 16 Mar 2008 21:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=JiqcakbRwU3aTJ8o9O1rfakbnOww6NZxzWkHEfGw2Jk=; b=OuDo5VJn763NFqO/XU668TNbGPcEblpGSnPu3G7MSrPsA37Fly5RWj55liQe+vX/7v1iCWyJQu/3xzqJCsGmrOkgAw+PsMSZQlSoRqkTGbcojTpPuugrzBQrf1vp4QhW3IMC+bk94j/ztombWft0oo8BV2t9jE6IQyjZJAawCA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=psHS4vkxaKJUjt9p7b76hbj673F5DTkS0enc7lzhj6Pr7TWlR30isBgqq7DbUdJgXNk/k9xbIRyMx81eYuBFCGpo0/GYog8P55BvwoPtBuDzoXMi26wiGWENLwBY2/vHh6wo4oKbWv9BLbCVQbG6lc6BSqdj59UPMGsgnhOYTIk= Received: by 10.140.165.21 with SMTP id n21mr7296298rve.289.1205727800968; Sun, 16 Mar 2008 21:23:20 -0700 (PDT) Received: by 10.140.143.14 with HTTP; Sun, 16 Mar 2008 21:23:20 -0700 (PDT) Message-ID: Date: Mon, 17 Mar 2008 13:23:20 +0900 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: "Joseph Koshy" In-Reply-To: <867ig2pr5j.wl%koshy@unixconsulting.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <867ig2pr5j.wl%koshy@unixconsulting.co.in> X-Google-Sender-Auth: 9030f0874759cf9e Cc: current@freebsd.org Subject: Re: issues with hwpmc and athlon XP X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 04:23:22 -0000 On 17/03/2008, Joseph Koshy wrote: > It so happens that the Athlon XP machine I purchased had one of those > BIOSes that do not enable the local APIC. So I couldn't get those > PMCs to deliver an interrupt and wasn't able to test sampling on this > processor. That was frustrating, especially since Linux 2.4 and later > can override the BIOS and use the LAPIC; we can't. Hm, why can they but we can't? > Onto debugging this bug: my first question is: does system sampling > (i.e.. pmcstat -S) work OK on this CPU? It returned results. I don't know how valid the results were. In fact, I'm still not getting user-space info from pmcstat -P but that partially may be user error. I'm seeing NMI's which are logged against a user trapframe but nothing shows up in my profiling output.. it could be attributing it to the library/libraries instead of the process. Adrian -- Adrian Chadd - adrian@freebsd.org