From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840Ab0JTQTw (ORCPT ); Wed, 20 Oct 2010 12:19:52 -0400 Received: from canuck.infradead.org ([134.117.69.58]:48309 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162Ab0JTQTw convert rfc822-to-8bit (ORCPT ); Wed, 20 Oct 2010 12:19:52 -0400 Subject: Re: [RFC PATCH 2/9] perf: Add ability to dump user regs From: Peter Zijlstra To: Stephane Eranian Cc: Frederic Weisbecker , LKML , Ingo Molnar , Arnaldo Carvalho de Melo , Paul Mackerras , Cyrill Gorcunov , Tom Zanussi , Masami Hiramatsu , Steven Rostedt , Robert Richter , David Miller In-Reply-To: References: <1286946421-32202-1-git-send-regression-fweisbec@gmail.com> <1286946421-32202-3-git-send-regression-fweisbec@gmail.com> <1286954453.29097.58.camel@twins> <20101014112000.GA5336@nowhere> <20101015225722.GA5354@nowhere> <1287310023.1998.150.camel@laptop> <20101018223539.GB5370@nowhere> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 20 Oct 2010 18:19:39 +0200 Message-ID: <1287591579.3488.34.camel@twins> 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-10-20 at 11:24 +0200, Stephane Eranian wrote: > > The alternative would be to invent yet another generic abstraction > to sample cache misses. Note that PEBS cache miss sampling > cannot be attached to an existing generic cache miss event. It > uses a dedicated event which does not count all cache misses. Yeah, the IBS trainwreck comes to mind, I wish the PMU designers wouldn't create such a mess. I really dislike using PERF_SAMPLE_RAW for things like this, because it fully arch dependent.