Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751078AbXBMVgs (ORCPT ); Tue, 13 Feb 2007 16:36:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751095AbXBMVgs (ORCPT ); Tue, 13 Feb 2007 16:36:48 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:1178 "EHLO spitz.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751078AbXBMVgr (ORCPT ); Tue, 13 Feb 2007 16:36:47 -0500 Date: Tue, 13 Feb 2007 21:35:48 +0000 From: Pavel Machek To: Jens Axboe Cc: Nigel Cunningham , Otavio Salvador , LKML Subject: Re: [PATCH] Add PM_TRACE x86_64 support. Message-ID: <20070213213547.GA5821@ucw.cz> References: <1170895857.4451.55.camel@nigel.suspend2.net> <87lkj9bg67.fsf@neumann.lab.ossystems.com.br> <1170900487.4451.62.camel@nigel.suspend2.net> <20070208124003.GE4487@kernel.dk> <20070209225255.GC3949@ucw.cz> <20070210084217.GJ6152@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070210084217.GJ6152@kernel.dk> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1740 Lines: 44 On Sat 2007-02-10 09:42:17, Jens Axboe wrote: > On Fri, Feb 09 2007, Pavel Machek wrote: > > Hi! > > > > > > > Nigel Cunningham writes: > > > > > > > > > > > - for (tracedata = &__tracedata_start ; tracedata < &__tracedata_end ; tracedata += 6) { > > > > > > + for (tracedata = &__tracedata_start ; tracedata < &__tracedata_end ; tracedata += 2 + sizeof(unsigned long)) { > > > > > > > > > > Could you split this line? > > > > > > > > Sure. > > > > > > > > -- New version -- (What's the right way to do this?) > > > > > > > > This patch add x86_64 support for PM_TRACE, and shifts per-arch code to > > > > the appropriate subdirectories. > > > > > > > > Symbol exports are added so tracing can be used from drivers built as > > > > modules too. > > > > > > Don't include exports in a patch that doesn't use them. Introduce the > > > exports in a later patch series, for when you actually need it. > > > > It is debugging infrastructure, so export actually makes sense... It > > will not ever be used in mainline kernel; you need to modify code > > manually to use this code.. > > Then add the exports while you are modifying the other code, it's no > reason to put it in mainline. Same could be said for the rest of the code, too... but Linus added it to the mainline. (Actually it has one example user somewhere, iirc) -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - 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/