lkml.org 
[lkml]   [2003]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: BUGed to death
Date
On Monday 14 April 2003 22:19, Martin J. Bligh wrote:
> Seems all these bug checks are fairly expensive. I can get 1%
> back on system time for kernel compiles by changing BUG to
> "do {} while (0)" to make them all compile away. Profiles aren't
> very revealing though ... seems to be within experimental error ;-(
>
> I was pondering CONFIG_RUN_WILD_NAKED_AND_FREE, but maybe we can
> just nail a few of the hottest path ones instead (I think you did
> a couple already recently). I guess that suggestion isn't much
> use without more profile data though ;-)

You would think that the compiler would consider a branch leading to
ud2 (i.e. BUG()) to be "unlikely", but it doesn't seem to. Maybe some
improvement can be made there.

All the best,

Duncan.

PS: gcc 3.2.3
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site