lkml.org 
[lkml]   [2019]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 00/20] objtool: UACCESS validation v3
    On Thu, Mar 07, 2019 at 10:47:05AM -0600, Josh Poimboeuf wrote:

    > This "fixes" it, and also seems to help -Os make much code:
    >
    > diff --git a/include/linux/compiler.h b/include/linux/compiler.h
    > index 445348facea9..8de63db58fdd 100644
    > --- a/include/linux/compiler.h
    > +++ b/include/linux/compiler.h
    > @@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
    > .line = __LINE__, \
    > }; \
    > ______r = !!(cond); \
    > - ______f.miss_hit[______r]++; \
    > + if (______r) ______f.miss_hit[1]++; else ______f.miss_hit[0]++; \
    > ______r; \
    > }))
    > #endif /* CONFIG_PROFILE_ALL_BRANCHES */

    Excellen; let me put the kids to bed and then I'll have a poke.

    \
     
     \ /
      Last update: 2019-03-07 18:43    [W:5.359 / U:1.556 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site