lkml.org 
[lkml]   [2008]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] trace: profile all if conditionals

On Fri, 21 Nov 2008, Andrew Morton wrote:
> >
> > +#define if(cond) if (__builtin_constant_p((cond)) ? !!(cond) : \
>
> wheee...
>
> Now how are you going to profile ?:, while, for(;expr;), etc? ;)

I don't know. Give me a few months, I'll figure out a way ;-)

This is just a way to see if we should add or remove more if annotations.

(i.e. likely() and unlikey() )

-- Steve



\
 
 \ /
  Last update: 2008-11-22 00:37    [W:0.076 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site