From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751969Ab0LVKpR (ORCPT ); Wed, 22 Dec 2010 05:45:17 -0500 Received: from casper.infradead.org ([85.118.1.10]:49542 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791Ab0LVKpP convert rfc822-to-8bit (ORCPT ); Wed, 22 Dec 2010 05:45:15 -0500 Subject: Re: [RFC PATCH] perf: Add load latency monitoring on Intel Nehalem/Westmere From: Peter Zijlstra To: Stephane Eranian Cc: Lin Ming , Ingo Molnar , Andi Kleen , Frederic Weisbecker , Arjan van de Ven , lkml , paulus In-Reply-To: References: <1293005543.2565.156.camel@minggr.sh.intel.com> <1293008431.2170.63.camel@laptop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 22 Dec 2010 11:45:01 +0100 Message-ID: <1293014701.2170.111.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2010-12-22 at 11:08 +0100, Stephane Eranian wrote: > Yes, I think there is more to it than just data source, unfortunately. > If you want to avoid returning an opaque u64 (PERF_SAMPLE_EXTRA), then > you need to break it down: PERF_SAMPLE_DATA_SRC, PERF_SAMPLE_XX > and so on. I guess we can do things like: Satisfied by {L1, L2, L3, RAM}x{snoop, local, remote} + unknown, and encode "Pending core cache HIT" as L2-snoop or something, whatever is most appropriate. But does that cover every architecture? Also, since that doesn't require more that 4 bits to encode, we could try and categorize what else is around and try and create a well specified _EXTRA register, I mean, we still got 60bits left after this.