Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754339AbYKZDU7 (ORCPT ); Tue, 25 Nov 2008 22:20:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753190AbYKZDUt (ORCPT ); Tue, 25 Nov 2008 22:20:49 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:49291 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbYKZDUs (ORCPT ); Tue, 25 Nov 2008 22:20:48 -0500 Date: Tue, 25 Nov 2008 22:20:45 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Paul Mundt cc: Liming Wang , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ftrace: adding other non-leaving .text sections In-Reply-To: <20081126030446.GA14685@linux-sh.org> Message-ID: References: <1227666566-9044-1-git-send-email-liming.wang@windriver.com> <20081126030446.GA14685@linux-sh.org> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1373 Lines: 34 On Wed, 26 Nov 2008, Paul Mundt wrote: > On Tue, Nov 25, 2008 at 10:03:35PM -0500, Steven Rostedt wrote: > > > > On Wed, 26 Nov 2008, Liming Wang wrote: > > > > > Please review this patch, and I don't know whether new sections will conflict > > > with sched tracer or others. > > > This patch is against Steven tree's tip/devel latest commit. > > > > > > Impact: improve recordmcount.pl > > > > > > Besides .text section, there are three .text sections that won't > > > be freed after kernel booting. They are: .sched.text, .spinlock.text > > > and .kprobes.text, which contain functions we can trace. But the last > > > section ".kprobes.text" is particular, which has been marked as "notrace", > > > we ignore it. Thus we add other two sections. > > > > Yep, only those sections that we know will not disappear are OK. I was > > conservative with only using ".text" but I knew there were other sections > > that were OK, so I used the hash array to make it easy to add others. > > > Does your .text cover .text.head by the way? No, you can add it if it is safe to trace, and it will not ever disappear. -- Steve -- 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/