From owner-freebsd-current@FreeBSD.ORG Thu Oct 18 01:01:17 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D99DAB54 for ; Thu, 18 Oct 2012 01:01:17 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 818008FC0C for ; Thu, 18 Oct 2012 01:01:17 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id v11so10268876vbm.13 for ; Wed, 17 Oct 2012 18:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2MmKVwf9sR1vvn9d+UZyjO/myqRQ/ccExjXgVB9j8vE=; b=lASbRuqfbz7FnFpjLb8E+Vz0G99z1X0tkACIqg+5PacpAoCDx9iPGGowadb8G8w3zP Vs4d72p3g4Xd8GPD6xjcla6CWioEB6sebStc1s7Ldkf23rKKp2lz7Mz1LTE9EPHJd5CK rDueJaP0iUJXWyQZvCCZ7r2KP00LchyjMElamaAsE8Is+OyMMmnaO7WReC/6jElCaMW+ AGU15VTT82uOMYPplm9v3tKwqELJbkVEc/9OhHR3AhBHOKMP6V2I16ipESnSRVwylyKp UKXKSDcRBiFs5BEKxubsk0ruMn/fAxv2w06Qsw3TYj1FO8BpGA05yNizmy2+VNuzi/L0 XDcg== MIME-Version: 1.0 Received: by 10.220.154.2 with SMTP id m2mr2774400vcw.18.1350522076378; Wed, 17 Oct 2012 18:01:16 -0700 (PDT) Received: by 10.58.225.2 with HTTP; Wed, 17 Oct 2012 18:01:16 -0700 (PDT) In-Reply-To: References: <1349390777.5234.9.camel@powernoodle.corp.yahoo.com> Date: Wed, 17 Oct 2012 18:01:16 -0700 Message-ID: Subject: Re: [CFT]hwpmc update for sandybridge-e From: Jim Harris To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 Cc: Davide Italiano , freebsd-current , Fabien Thomas X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 18 Oct 2012 01:01:18 -0000 On Wed, Oct 17, 2012 at 5:55 PM, hiren panchasara wrote: > > > On Wed, Oct 17, 2012 at 5:12 PM, hiren panchasara > wrote: >> >> >> >> On Wed, Oct 17, 2012 at 5:00 PM, Jim Harris wrote: >>> >>> On Wed, Oct 17, 2012 at 3:57 PM, hiren panchasara >>> wrote: >>> > >>> >>> > >>> > >>> > Thanks for the pointers Jim! >>> > >>> > It seems that everything works now with: >>> > >>> > http://www.strugglingcoder.info/patches/hwpmc_sbx_3.txt > > > I've also made following change in existing sandybridge (not xeon :-) ) > mappings. > Let me know if that looks reasonable. > > > @@ -2772,7 +2777,7 @@ > __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_NONE", > IAP_EVENT_D2H_08H) \ > __PMC_EV_ALIAS("MEM_LOAD_UOPS_LLC_HIT_RETIRED.LLC_MISS", > IAP_EVENT_D4H_02H) \ > __PMC_EV_ALIAS("L2_TRANS.DEMAND_DATA_RD", IAP_EVENT_F0H_01H) \ > -__PMC_EV_ALIAS("L2_TRANS.RF0", IAP_EVENT_F0H_02H) \ > +__PMC_EV_ALIAS("L2_TRANS.RFO", IAP_EVENT_F0H_02H) \ > __PMC_EV_ALIAS("L2_TRANS.CODE_RD", IAP_EVENT_F0H_04H) \ > __PMC_EV_ALIAS("L2_TRANS.ALL_PF", IAP_EVENT_F0H_08H) \ > __PMC_EV_ALIAS("L2_TRANS.L1D_WB", IAP_EVENT_F0H_10H) \ This is a reasonable change, but it should be part of a separate commit. > Thanks, > Hiren