Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:40841 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026Ab2DEMdK (ORCPT ); Thu, 5 Apr 2012 08:33:10 -0400 Message-ID: <1333629184.3494.12.camel@jlt3.sipsolutions.net> (sfid-20120405_143328_054146_12D888BC) Subject: Re: [PATCH 4/4] compat: add some tracing backport work From: Johannes Berg To: "Luis R. Rodriguez" Cc: "Luis R. Rodriguez" , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, lf_driver_backport@lists.linux-foundation.org Date: Thu, 05 Apr 2012 14:33:04 +0200 In-Reply-To: <20120328100027.GA4420@bombadil.infradead.org> (sfid-20120328_120100_045553_52796B2A) References: <1332214021-9716-1-git-send-email-mcgrof@frijolero.org> <1332214021-9716-5-git-send-email-mcgrof@frijolero.org> <1332245766.3329.14.camel@jlt3.sipsolutions.net> <1332751768.3511.3.camel@jlt3.sipsolutions.net> <20120326125822.GA11929@bombadil.infradead.org> <20120328100027.GA4420@bombadil.infradead.org> (sfid-20120328_120100_045553_52796B2A) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2012-03-28 at 06:00 -0400, Luis R. Rodriguez wrote: > I've managed to backport tracing it seems, even when CONFIG_TRACEPOINTS > is enabled. Nope, you've managed to completely kill tracing. > +#undef __DECLARE_TRACE > +#define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ > + static inline void trace_##name(proto) \ > + { } \ > + static inline void trace_##name##_rcuidle(proto) \ > + { } \ > + static inline int \ > + register_trace_##name(void (*probe)(proto)) \ > + { \ > + return -ENOSYS; \ > + } \ > + static inline void \ > + unregister_trace_##name(void (*probe)(proto)) \ > + { \ > + return -ENOSYS; \ > + } \ > + static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \ > + { \ > + } All of this simply completely kills tracing. Worse, the tracepoints get registered, but their trace_##name functions do nothing, so you can think that they're there, but they never record data ... The old way was much better. Can we just let 2.6.24 and the other ancients die in peace? johannes