From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
Peter Zijlstra <peterz@infradead.org>,
David Miller <davem@davemloft.net>,
linuxppc-dev@ozlabs.org, Steven Rostedt <srostedt@redhat.com>,
Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>
Subject: [PATCH 1/2] ftrace: use ftrace_release for all dynamic ftrace functions
Date: Sat, 06 Sep 2008 01:06:03 -0400 [thread overview]
Message-ID: <20080906050905.931087594@goodmis.org> (raw)
In-Reply-To: 20080906050602.409299112@goodmis.org
ftrace_release is necessary for all uses of dynamic ftrace and not just
the archs that have CONFIG_FTRACE_MCOUNT_RECORD defined.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
include/linux/ftrace.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Index: linux-tip.git/include/linux/ftrace.h
===================================================================
--- linux-tip.git.orig/include/linux/ftrace.h 2008-09-05 16:04:34.000000000 -0700
+++ linux-tip.git/include/linux/ftrace.h 2008-09-05 20:10:47.000000000 -0700
@@ -77,8 +77,10 @@ extern void mcount_call(void);
extern int skip_trace(unsigned long ip);
-void ftrace_disable_daemon(void);
-void ftrace_enable_daemon(void);
+extern void ftrace_release(void *start, unsigned long size);
+
+extern void ftrace_disable_daemon(void);
+extern void ftrace_enable_daemon(void);
#else
# define skip_trace(ip) ({ 0; })
@@ -86,6 +88,7 @@ void ftrace_enable_daemon(void);
# define ftrace_set_filter(buf, len, reset) do { } while (0)
# define ftrace_disable_daemon() do { } while (0)
# define ftrace_enable_daemon() do { } while (0)
+static inline void ftrace_release(void *start, unsigned long size) { }
#endif /* CONFIG_DYNAMIC_FTRACE */
/* totally disable ftrace - can not re-enable after this */
@@ -199,12 +202,10 @@ static inline void ftrace_dump(void) { }
#ifdef CONFIG_FTRACE_MCOUNT_RECORD
extern void ftrace_init(void);
extern void ftrace_init_module(unsigned long *start, unsigned long *end);
-extern void ftrace_release(void *start, unsigned long size);
#else
static inline void ftrace_init(void) { }
static inline void
ftrace_init_module(unsigned long *start, unsigned long *end) { }
-static inline void ftrace_release(void *start, unsigned long size) { }
#endif
--
next prev parent reply other threads:[~2008-09-06 5:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-06 5:06 [PATCH 0/2] ftrace: fixes for PPC Steven Rostedt
2008-09-06 5:06 ` Steven Rostedt [this message]
2008-09-06 5:06 ` [PATCH 2/2] ftrace: fix unlocking of hash Steven Rostedt
2008-09-06 12:03 ` [PATCH 0/2] ftrace: fixes for PPC Ingo Molnar
2008-10-16 18:14 ` Josh Boyer
2008-10-16 18:22 ` Steven Rostedt
2008-10-16 18:35 ` Josh Boyer
2008-10-16 18:42 ` Steven Rostedt
2008-10-16 18:45 ` Steven Rostedt
2008-10-16 19:01 ` Josh Boyer
2008-10-20 16:30 ` Steven Rostedt
2008-10-20 17:08 ` Josh Boyer
2008-10-20 17:28 ` Steven Rostedt
2008-10-20 17:42 ` Frédéric Weisbecker
2008-10-20 17:53 ` Steven Rostedt
2008-10-20 21:47 ` Frédéric Weisbecker
2008-10-17 0:48 ` [PATCH] ftrace: powerpc: remove startup functions from tracing Steven Rostedt
2008-10-17 0:50 ` Benjamin Herrenschmidt
2008-10-17 1:04 ` Steven Rostedt
2008-10-17 5:37 ` [PATCH 0/2] ftrace: fixes for PPC Chris Friesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080906050905.931087594@goodmis.org \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=srostedt@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).