From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966262AbdJQV2O (ORCPT ); Tue, 17 Oct 2017 17:28:14 -0400 Received: from mga02.intel.com ([134.134.136.20]:62558 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935054AbdJQV2N (ORCPT ); Tue, 17 Oct 2017 17:28:13 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,392,1503385200"; d="scan'208";a="139404499" Date: Tue, 17 Oct 2017 14:28:12 -0700 From: Andi Kleen To: "Liang, Kan" Cc: Stephane Eranian , Arnaldo Carvalho de Melo , Peter Zijlstra , "mingo@redhat.com" , LKML , Jiri Olsa , "Williams, Dan J" Subject: Re: [PATCH] perf script: add script to profile and resolve physical mem type Message-ID: <20171017212812.GT5109@tassilo.jf.intel.com> References: <1508192794-338697-1-git-send-email-kan.liang@intel.com> <37D7C6CF3E00A74B8858931C1DB2F077537D6C19@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F077537D6C59@SHSMSX103.ccr.corp.intel.com> <20171017204922.GS5109@tassilo.jf.intel.com> <37D7C6CF3E00A74B8858931C1DB2F077537D6C9F@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <37D7C6CF3E00A74B8858931C1DB2F077537D6C9F@SHSMSX103.ccr.corp.intel.com> User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 17, 2017 at 09:10:16PM +0000, Liang, Kan wrote: > > > > > > Right, it doesn’t need load latency. 0x81d0 should be a better choice. > > > I will use 0x81d0 and 0x82d0 as default event for V2. > > > > That's model specific. You would need to check the model number if you do > > that. > > > > Also with modern perf you can use the correct event names of course. > > The event names are model specific as well. > For Mem load events, > MEM_INST_RETIRED.ALL_LOADS is the event name for skylake. > MEM_UOPS_RETIRED.ALL_LOADS is the event name for the rest of platforms. > I think it still need to check the model number. You can just try the common variations, or grep them in perf list output. -Andi