lkml.org 
[lkml]   [2011]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/3] kprobes/trace: Fix kprobe selftest for gcc 4.6
From
Date
On Tue, 2011-06-07 at 11:08 -0700, David Daney wrote:

> > -static int kprobe_trace_selftest_target(int a1, int a2, int a3,
> > - int a4, int a5, int a6)
> > +/*
> > + * Can't be static, otherwise gcc might optimize this to
> > + * not be in the kallsyms table.
> > + */
>
> Could you make it '__used' instead?
>

I can try, but the problem is not that the function itself is being
optimized out. It looks like its being turned into anonymous text. That
is, it optimized out the symbol name, not the code itself.

-- Steve




\
 
 \ /
  Last update: 2011-06-07 20:15    [W:1.952 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site