From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759429Ab0GVNtR (ORCPT ); Thu, 22 Jul 2010 09:49:17 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:43642 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754279Ab0GVNtQ (ORCPT ); Thu, 22 Jul 2010 09:49:16 -0400 Date: Thu, 22 Jul 2010 15:48:36 +0200 From: Ingo Molnar To: Steven Rostedt Cc: Johannes Berg , Lin Ming , Reinette Chatre , Robert Richter , Corey Ashford , Peter Zijlstra , Greg KH , Frederic Weisbecker , Paul Mundt , "eranian@gmail.com" , "Gary.Mohr@Bull.com" , "arjan@linux.intel.com" , "Zhang, Yanmin" , Paul Mackerras , "David S. Miller" , Russell King , Arnaldo Carvalho de Melo , Will Deacon , Maynard Johnson , Carl Love , Kay Sievers , lkml , Thomas Gleixner Subject: Re: [RFC][PATCH v1 06/15] perf: export tracepoint events via sysfs: iwlwifi and iwlwifi_io Message-ID: <20100722134836.GA6881@elte.hu> References: <1279797230.20942.87.camel@minggr.sh.intel.com> <1279797640.12439.11.camel@jlt3.sipsolutions.net> <1279805440.3319.2.camel@gandalf.stny.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1279805440.3319.2.camel@gandalf.stny.rr.com> 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.2.5 -2.0 BAYES_00 BODY: Bayesian 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 * Steven Rostedt wrote: > On Thu, 2010-07-22 at 13:20 +0200, Johannes Berg wrote: > > On Thu, 2010-07-22 at 19:13 +0800, Lin Ming wrote: > > > iwlwifi and iwlwifi_io tracepoint events are exported like below, > > > > > drivers/net/wireless/iwlwifi/iwl3945-base.c | 15 +++++++++++++++ > > > 1 files changed, 15 insertions(+), 0 deletions(-) > > > > err, how about iwlagn? > > A lot of work went into making the include/trace/events/*.h be able to > automate the work. Now it seems that we are going to hand code a lot, and a > developer that adds a new system or such will now need to understand the > internals of perf to use it. That was what I strived to avoid when creating > the TRACE_EVENT() macros. Yeah - and the point of this submission is to allow the discussion of how to achieve these registrations. Driver authors will want to have some control - for example the place where the events directory shows up in sysfs within the driver's directory structure - etc. But we indeed want to automate it as much as possible. Thanks, Ingo