From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754897AbZHYKdg (ORCPT ); Tue, 25 Aug 2009 06:33:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754804AbZHYKde (ORCPT ); Tue, 25 Aug 2009 06:33:34 -0400 Received: from casper.infradead.org ([85.118.1.10]:39804 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680AbZHYKde (ORCPT ); Tue, 25 Aug 2009 06:33:34 -0400 Subject: Re: [PATCH] tracing/profile: Fix profile_disable vs module_unload From: Peter Zijlstra To: Ingo Molnar Cc: Li Zefan , Steven Rostedt , Frederic Weisbecker , LKML In-Reply-To: <20090825102215.GC26801@elte.hu> References: <4A923197.4040708@cn.fujitsu.com> <1251097012.7538.123.camel@twins> <20090824092455.GA25267@elte.hu> <1251106058.7538.149.camel@twins> <4A937505.5000209@cn.fujitsu.com> <1251181266.7538.1016.camel@twins> <4A9385AA.508@cn.fujitsu.com> <1251182405.7538.1050.camel@twins> <20090825090558.GC14003@elte.hu> <1251191546.7538.1118.camel@twins> <20090825102215.GC26801@elte.hu> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 25 Aug 2009 12:32:39 +0200 Message-Id: <1251196359.7538.1133.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2009-08-25 at 12:22 +0200, Ingo Molnar wrote: > * Peter Zijlstra wrote: > > > On Tue, 2009-08-25 at 11:05 +0200, Ingo Molnar wrote: > > > * Peter Zijlstra wrote: > > > > > > > Ah, my bad, I was thikning tracepoint_probe_register() was the > > > > thing that registered the tracepoint itself, not the callback. > > > > > > > > Ok, then what's the problem?, don't do modules that consume their > > > > own tracepoints, seems simple enough. > > > > > > is this a reasonable restriction? I dont see any reason why the > > > act of defining and providing a tracepoint should be exclusive > > > of the ability to make use of it. > > > > It doesn't make sense to me, you don't need your own tracepoints > > because you generate the events yourself, you already have them. > > For a reasonable large subsystem/driver i can very well imagine this > to happen: why should the subsystem add _another_ layer of callbacks > if it can reuse the generic tracepoint code and register itself to > those? Then that subsystem would be non functioning when the kernel is build without tracepoints. Nothing should rely on tracepoint being present, they are and should remain a debug feature, not a core hook thing. Do you really wish to burden every tracepoint user with the extra logic needed to deal with modules?