lkml.org 
[lkml]   [2008]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] ftrace: adding other non-leaving .text sections

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



\
 
 \ /
  Last update: 2008-11-26 04:43    [W:0.064 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site