login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
3
Re: [patch 1/3] move WARN_ON() out of line
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Arjan van de Ven <arjan@...>
To: Olof Johansson <olof@...>
Cc: <linux-kernel@...>, Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>
Subject:
Re: [patch 1/3] move WARN_ON() out of line
Date: Thursday, January 3, 2008 - 5:03 pm
Olof Johansson wrote:
quoted text
> On Thu, Jan 03, 2008 at 01:56:58AM +0100, Arjan van de Ven wrote: >> Subject: move WARN_ON() out of line >> From: Arjan van de Ven <arjan@linux.intel.com> >> CC: Ingo Molnar <mingo@elte.hu> >> CC: Andrew Morton <akpm@linux-foundation.org> >> >> A quick grep shows that there are currently 1145 instances of WARN_ON >> in the kernel. Currently, WARN_ON is pretty much entirely inlined, >> which makes it hard to enhance it without growing the size of the kernel >> (and getting Andrew unhappy). >> >> This patch moves WARN_ON() out of line entirely. I've considered keeping >> the test inline and moving only the slowpath out of line, but I decided >> against that: an out of line test reduces the pressure on the CPUs >> branch predictor logic and gives smaller code, while a function call >> to a fixed location is quite fast. Likewise I've considered doing something >> similar to BUG() (eg use a trapping instruction) but that's not really >> better (it needs the test inline again and recovering from an invalid >> instruction isn't quite fun). > > Hi Arjan, > > I've got a couple of patches in -mm at the moment that introduces __WARN() > and uses that (and lets architectures override __WARN, since for example > powerpc does use trapping instructions similarly to BUG()). > > The two patches in question are: > > bugh-remove-have_arch_bug--have_arch_warn.patch > powerpc-switch-to-generic-warn_on-bug_on.patch > > Care to do this incrementally on top of that instead? I.e. call > do_warn_on() from the asm-generic/bug.h __WARN() instead. > >
ok just did that; will post shortly --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Wed Jan 2, 8:56 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Jeremy Fitzhardinge
, (Sat Jan 5, 2:41 am)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Sat Jan 5, 2:01 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Jeremy Fitzhardinge
, (Sat Jan 5, 2:45 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Sat Jan 5, 4:02 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Sat Jan 5, 2:08 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Sat Jan 5, 2:37 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Dmitri Vorobiev
, (Sat Jan 5, 1:09 am)
Re: [patch 1/3] move WARN_ON() out of line
, Pekka Enberg
, (Thu Jan 3, 7:20 am)
Re: [patch 1/3] move WARN_ON() out of line
, Ingo Molnar
, (Thu Jan 3, 5:25 am)
Re: [patch 1/3] move WARN_ON() out of line
, Jeremy Fitzhardinge
, (Sat Jan 5, 2:42 am)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Thu Jan 3, 12:22 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Olof Johansson
, (Thu Jan 3, 12:58 am)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Thu Jan 3, 5:03 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Matt Mackall
, (Wed Jan 2, 9:59 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Thu Jan 3, 5:06 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Herbert Xu
, (Fri Jan 4, 10:35 pm)
Re: [patch 1/3] move WARN_ON() out of line
, Arjan van de Ven
, (Sat Jan 5, 2:33 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jeremy Allison
Re: [RFC] Heads up on sys_fallocate()
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Joerg Roedel
[PATCH 03/34] AMD IOMMU: add defines and structures for ACPI scanning code
Eric W. Biederman
[PATCH] powerpc pseries eeh: Convert to kthread API
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Natalie Protasevich
[BUG] New Kernel Bugs
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
792 guests
online.
Online users
strcmp
mikewayne
Syndicate