login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
8
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Vivek Goyal
Subject:
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
Date: Friday, August 8, 2008 - 7:17 am
On Fri, Aug 08, 2008 at 02:52:48PM +0800, Huang Ying wrote:
quoted text
> Add ftrace_enabled_save/restore, used to disable ftrace for a > while. This is used by kexec jump. > > Signed-off-by: Huang Ying <ying.huang@intel.com> >
CCing Steven Rostedt for ftrace related changes.
quoted text
> --- > include/linux/ftrace.h | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > --- a/include/linux/ftrace.h > +++ b/include/linux/ftrace.h > @@ -98,6 +98,24 @@ static inline void tracer_disable(void) > #endif > } > > +static inline int ftrace_enabled_save(void) > +{ > +#ifdef CONFIG_FTRACE > + int saved_ftrace_enabled = ftrace_enabled; > + ftrace_enabled = 0; > + return saved_ftrace_enabled; > +#else > + return 0; > +#endif > +} > + > +static inline void ftrace_enabled_restore(int enabled) > +{ > +#ifdef CONFIG_FTRACE > + ftrace_enabled = enabled; > +#endif > +} > + > #ifdef CONFIG_FRAME_POINTER > /* TODO: need to fix this for ARM */ > # define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0)) >
--
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 -v2 7/8] kexec jump: ftrace_enabled_save/restore
, Huang Ying
, (Thu Aug 7, 11:52 pm)
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
, Vivek Goyal
, (Fri Aug 8, 7:17 am)
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
, Steven Rostedt
, (Fri Aug 8, 7:30 am)
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
, Huang Ying
, (Sun Aug 10, 6:22 pm)
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
, Steven Rostedt
, (Mon Aug 11, 5:29 am)
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
, Vivek Goyal
, (Mon Aug 11, 6:51 am)
Re: [PATCH -v2 7/8] kexec jump: ftrace_enabled_save/restore
, Huang Ying
, (Mon Aug 11, 6:22 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Benjamin Herrenschmidt
[git pull] Please pull powerpc.git merge branch
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Vivek Goyal
Re: [PATCH v4] sched: automated per session task groups
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
David Miller
Re: [PATCH 2/5] dccp: Auto-load (when supported) CCID plugins for negotiation
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
kbuild: move bounds.h to include/generated
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate