From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758011Ab0EKOZa (ORCPT ); Tue, 11 May 2010 10:25:30 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:54307 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751885Ab0EKOZ2 (ORCPT ); Tue, 11 May 2010 10:25:28 -0400 Subject: Re: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs From: Peter Zijlstra To: Borislav Petkov Cc: Ingo Molnar , Lin Ming , Frederic Weisbecker , "eranian@gmail.com" , "Gary.Mohr@Bull.com" , Corey Ashford , "arjan@linux.intel.com" , "Zhang, Yanmin" , Paul Mackerras , "David S. Miller" , Russell King , Paul Mundt , lkml , Arnaldo Carvalho de Melo In-Reply-To: <20100511141511.GA14034@aftab> References: <1273483623.15998.57.camel@minggr.sh.intel.com> <1273484401.5605.3333.camel@twins> <1273486313.15998.76.camel@minggr.sh.intel.com> <1273486708.5605.3342.camel@twins> <1273487195.15998.85.camel@minggr.sh.intel.com> <1273490824.5605.3379.camel@twins> <20100510114311.GA6449@elte.hu> <20100511141511.GA14034@aftab> Content-Type: text/plain; charset="UTF-8" Date: Tue, 11 May 2010 16:25:15 +0200 Message-ID: <1273587915.1810.1.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2010-05-11 at 16:15 +0200, Borislav Petkov wrote: > Another point I have is that MCEs don't need pmus so we should consider > having the ability to decouple events from pmus. Strictly speaking tracepoints are software events, which run off of a software 'pmu'. So no, we can't decouple, they need a 'pmu' context. > What you basically want to have is a tracepoint which is "persistent," > as Ingo suggested earlier, and it buffers MCEs occurring at any time > into a ring buffer until a userspace daemon or similar sucks that data > out for processing (critical stuff is handled differently, of course). > And this should work on any x86 hw supporting MCA without hw perf > monitoring features. Try building x86 without perf hw support :/