lkml.org 
[lkml]   [2008]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2 3/6] ftrace: enable mcount recording for modules
Date
On Friday 15 August 2008 05:45:09 Steven Rostedt wrote:
> This patch enables the loading of the __mcount_section of modules and
> changing all the callers of mcount into nops.
...
> + if (mcountindex) {
> + void *mseg = (void *)sechdrs[mcountindex].sh_addr;
> + ftrace_init_module(mseg, mseg + sechdrs[mcountindex].sh_size);

You don't actually need the if. The size of section 0 is 0.

Rusty.


\
 
 \ /
  Last update: 2008-08-15 01:29    [W:0.111 / U:6.184 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site