login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
22
Re: [PATCH 06/11] ftrace: add ftrace warn on to disable ftrace
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Steven Rostedt
Subject:
Re: [PATCH 06/11] ftrace: add ftrace warn on to disable ftrace
Date: Wednesday, October 22, 2008 - 12:20 pm
On Wed, 22 Oct 2008, Andrew Morton wrote:
quoted text
> > Index: linux-compile.git/kernel/trace/ftrace.c > > =================================================================== > > --- linux-compile.git.orig/kernel/trace/ftrace.c 2008-10-22 13:17:29.000000000 -0400 > > +++ linux-compile.git/kernel/trace/ftrace.c 2008-10-22 13:20:11.000000000 -0400 > > @@ -32,6 +32,24 @@ > > > > #include "trace.h" > > > > +#define FTRACE_WARN_ON(cond) \ > > + do { \ > > + if (unlikely(cond)) { \ > > + WARN_ON(1); \ > > + ftrace_kill(); \ > > + } \ > > + } while (0) > > This could be coded as > > if (WARN_ON(cond)) > ftrace_kill();
Ah, I didn't realize that WARN_ON returned the value of the condition. Will update in v2. -- Steve
quoted text
> > > +#define FTRACE_WARN_ON_ONCE(cond) \ > > + do { \ > > + static int once; \ > > + if (unlikely(cond) && !once) { \ > > + once++; \ > > + WARN_ON(1); \ > > + ftrace_kill(); \ > > + } \ > > + } while (0) > > > if (WARN_ON_ONCE(cond)) > ftrace_kill(); > > > >
--
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 06/11] ftrace: add ftrace warn on to disable ftrace
, Steven Rostedt
, (Wed Oct 22, 11:43 am)
Re: [PATCH 06/11] ftrace: add ftrace warn on to disable ftrace
, Andrew Morton
, (Wed Oct 22, 12:12 pm)
Re: [PATCH 06/11] ftrace: add ftrace warn on to disable ftrace
, Steven Rostedt
, (Wed Oct 22, 12:20 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Russell King
Re: ARM defconfig files
Jesse Barnes
Re: PCI MSI breaks when booting with nosmp
James Morris
Re: [AppArmor 01/41] Pass struct vfsmount to the inode_create LSM hook
Philip Langdale
[PATCH 2.6.19] mmc: Add support for SDHC cards (Take 4)
Oren Laadan
[PATCH v21 073/100] c/r: Add AF_UNIX support (v12)
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Paolo Ciarrocchi
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
linux-netdev
:
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Andi Kleen
Re: RFC: Nagle latency tuning
David Miller
Re: [RFC 0/5] generic rx recycling
Gary Thomas
Re: Marvell 88E609x switch?
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
trivial: fix comment typo in fs/compat.c
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Rob Shepherd
x86 hardware for router system
Flickr Photo Map for iPad and iPhone
Thanks for the Great Launch of Flickr Photo Map for iPad + iPhone
Nick Holland
Re: Install OpenBSD from USB ?
Colocation donated by:
Syndicate