Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753003Ab1ECGlJ (ORCPT ); Tue, 3 May 2011 02:41:09 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:39563 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752140Ab1ECGlH (ORCPT ); Tue, 3 May 2011 02:41:07 -0400 Date: Tue, 3 May 2011 08:40:46 +0200 From: Ingo Molnar To: Borislav Petkov Cc: Peter Zijlstra , Arnaldo Carvalho de Melo , Steven Rostedt , Frederic Weisbecker , Tony Luck , Mauro Carvalho Chehab , EDAC devel , LKML , Borislav Petkov Subject: Re: [PATCH 2/4] perf: Add persistent event facilities Message-ID: <20110503064046.GD7751@elte.hu> References: <1304357691-14354-1-git-send-email-bp@amd64.org> <1304357691-14354-3-git-send-email-bp@amd64.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1304357691-14354-3-git-send-email-bp@amd64.org> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1592 Lines: 38 * Borislav Petkov wrote: > From: Borislav Petkov > > Add a barebones implementation for registering persistent events with > perf. For that, we don't destroy the buffers when they're unmapped; > also, we map them read-only so that multiple agents can access them. > > Signed-off-by: Borislav Petkov > --- > include/linux/perf_event.h | 22 +++++++++++++++- > kernel/events/Makefile | 2 +- > kernel/events/core.c | 29 ++++++++++++++++++--- > kernel/events/persistent.c | 59 ++++++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 105 insertions(+), 7 deletions(-) > create mode 100644 kernel/events/persistent.c I really like this new kernel/events/ subdirectory you created - we could move the other perf_events.c facilities there as well, and maybe split up the file a bit, it's 7.5 KLOC now which is a bit excessive. We should probably do that before adding kernel/events/persistent.c - wanna do those changes? Initial commit should be a mostly-rename thing: kernel/perf_events.c could move into kernel/events/core.c or so - and then we could split the core up some more, into various facilities. [ kernel/hw_breakpoint.c could possibly move into kernel/events/hw_breakpoint.c file as well - if Frederic acks it. ] Thanks, Ingo -- 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/