lkml.org 
[lkml]   [2020]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH] objtool,x86_64: Replace recordmcount with objtool
    On Wed, 22 Jul 2020 20:41:37 +0200
    Peter Zijlstra <peterz@infradead.org> wrote:

    > > That said, Andi Kleen added an option to gcc called -mnop-mcount which
    > > will have gcc do both create the mcount section and convert the calls
    > > into nops. When doing so, it defines CC_USING_NOP_MCOUNT which will
    > > tell ftrace to expect the calls to already be converted.
    >
    > That seems like the much easier solution, then we can forget about
    > recordmcount / objtool entirely for this.

    Of course that was only for some gcc compilers, and I'm not sure if
    clang can do this.

    Or do you just see all compilers doing this in the future, and not
    worrying about record-mcount at all, and bothering with objtool?

    -- Steve

    \
     
     \ /
      Last update: 2020-07-22 21:10    [W:2.524 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site