From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758001AbYBXR75 (ORCPT ); Sun, 24 Feb 2008 12:59:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752343AbYBXR7r (ORCPT ); Sun, 24 Feb 2008 12:59:47 -0500 Received: from pasmtpa.tele.dk ([80.160.77.114]:52436 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751675AbYBXR7q (ORCPT ); Sun, 24 Feb 2008 12:59:46 -0500 Date: Sun, 24 Feb 2008 18:59:55 +0100 From: Sam Ravnborg To: Pekka Paalanen Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Christoph Hellwig , Arjan van de Ven , Pavel Roskin , Steven Rostedt , Peter Zijlstra Subject: Re: [RFC] mmiotrace full patch, preview 1 Message-ID: <20080224175955.GB10712@uranus.ravnborg.org> References: <20080224190323.77adf683@daedalus.pq.iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080224190323.77adf683@daedalus.pq.iki.fi> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pekka. A small nitpick.. > > +config MMIOTRACE_HOOKS > + bool > + default n n is default so no need to be explicit. If you prefer being explcit then use: def_bool n > +config MMIOTRACE > + tristate "Memory mapped IO tracing" > + depends on DEBUG_KERNEL && RELAY && DEBUG_FS > + select MMIOTRACE_HOOKS > + default n Same here. > + help > + This will build a kernel module called mmiotrace. > + Making this a built-in is heavily discouraged. > + > + Mmiotrace traces Memory Mapped I/O access and is meant for debugging > + and reverse engineering. The kernel module offers wrapped > + versions of the ioremap family of functions. The driver to be traced > + must be modified to call these wrappers. A user space program is > + required to collect the MMIO data. > + > + See http://nouveau.freedesktop.org/wiki/MmioTrace > + If you are not helping to develop drivers, say N. > + > +config MMIOTRACE_TEST > + tristate "Test module for mmiotrace" > + depends on MMIOTRACE && m > + default n > + help > + This is a dumb module for testing mmiotrace. It is very dangerous > + as it will write garbage to IO memory starting at a given address. > + However, it should be safe to use on e.g. unused portion of VRAM. > + > + Say N, unless you absolutely know what you are doing. > + > # > # IO delay types: > # > diff --git a/arch/x86/mm/Makefile b/arch/x86/mm/Makefile > index 9832910..e182f6d 100644 > --- a/arch/x86/mm/Makefile > +++ b/arch/x86/mm/Makefile > @@ -3,3 +3,8 @@ include ${srctree}/arch/x86/mm/Makefile_32 > else > include ${srctree}/arch/x86/mm/Makefile_64 > endif > + > +obj-$(CONFIG_MMIOTRACE_HOOKS) += kmmio.o > +obj-$(CONFIG_MMIOTRACE) += mmiotrace.o > +mmiotrace-objs := pf_in.o mmio-mod.o Do not use '-objs' - '-y' is preferred as below: > +mmiotrace-y := pf_in.o mmio-mod.o Sam