From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751703AbdFFQVP (ORCPT ); Tue, 6 Jun 2017 12:21:15 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:59849 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751634AbdFFQVN (ORCPT ); Tue, 6 Jun 2017 12:21:13 -0400 Date: Tue, 6 Jun 2017 18:21:08 +0200 From: Peter Zijlstra To: Andi Kleen Cc: acme@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, Andi Kleen , Stephane Eranian Subject: Re: [PATCH 2/6] perf/x86: Fix data source decoding for Skylake Message-ID: <20170606162108.2vdepfejvqrr7xpl@hirez.programming.kicks-ass.net> References: <20170605224838.11759-1-andi@firstfloor.org> <20170605224838.11759-2-andi@firstfloor.org> <20170606100822.fds5qmgimz74jfja@hirez.programming.kicks-ass.net> <20170606135120.GG8096@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170606135120.GG8096@two.firstfloor.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 06, 2017 at 06:51:20AM -0700, Andi Kleen wrote: > > Not too happy about that.. > > > > P(LVLX, L4) | P(LVLX, REMOTE) > > > > reads like something that should be PERF_MEM_LVL_REM_CCE1 or something > > CCE1? You mean L4? #define PERF_MEM_LVL_REM_CCE1 0x400 /* Remote Cache (1 hop) */ It says 'cache' which is irrespective of level. > The two bits seem cleaner to me than enumerating all cases. But ok. I tend to agree that a separate remote,distance,type fields would have been nicer, but we seem to be stuck with this REM_* crud.. > > This new generic 'REMOTE' has too much overlap with the existing things. > > So you want a REM_NA ? Not sure... What's the point of a REM_NA vs regular NA ? "'something' happened 'not here'" vs "'something' happened". I hope Stephane has better ideas, he seems to be the one that introduced this in the first place.