Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759919Ab2ERLYg (ORCPT ); Fri, 18 May 2012 07:24:36 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36052 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754523Ab2ERLYf convert rfc822-to-8bit (ORCPT ); Fri, 18 May 2012 07:24:35 -0400 Message-ID: <1337340263.573.31.camel@twins> Subject: Re: [PATCH 1/2] perf: Add persistent event facilities From: Peter Zijlstra To: Borislav Petkov Cc: Frederic Weisbecker , Ingo Molnar , Steven Rostedt , LKML , Borislav Petkov Date: Fri, 18 May 2012 13:24:23 +0200 In-Reply-To: <20120518110357.GH20215@aftab.osrc.amd.com> References: <1332340496-21658-1-git-send-email-bp@amd64.org> <1332340496-21658-2-git-send-email-bp@amd64.org> <1337336040.573.12.camel@twins> <20120518110357.GH20215@aftab.osrc.amd.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 32 On Fri, 2012-05-18 at 13:03 +0200, Borislav Petkov wrote: > > - you allow an arbitrary place in debugfs; this might make finding > > them 'interesting'. Should we put them all in the same place? > > My take on this is that we want to be able to make the same events we > have now, persistent. Basically not trace for the duration of a child > process but in a process-agnostic way, system-wide. This would argue against per-task persistent events.. > In that case, we probably want to be able to mark events as persistent, > maybe add another node in debugfs: > > (debugfs)/tracing/events/mce/mce_record/attr > > which can be used for flags or whatever, or something to that effect... ( while mce is a user of persistent events, it seems to me in general persistent events should not be related to mce ) However you raise a valid point about keeping track of what events are spooled into that buffer. Note the plural there, it might be very desirable to allow multiple events into a single persistent buffer. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/