From: Eugene Teo <eugeneteo@kernel.sg>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, Steven Rostedt <rostedt@goodmis.org>
Subject: [PATCH] ftrace: remove unused tracing_sched_switch_enabled
Date: Sun, 10 Feb 2008 23:49:23 +0800 [thread overview]
Message-ID: <20080210154923.GA15451@kernel.sg> (raw)
In-Reply-To: <20080210072050.GN4100@elte.hu>
tracing_sched_switch_enabled isn't used anywhere.
Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
---
kernel/trace/trace.h | 1 -
kernel/trace/trace_sched_switch.c | 9 +--------
2 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index ac851b2..3173a93 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -138,7 +138,6 @@ void unregister_tracer(struct tracer *type);
extern unsigned long nsecs_to_usecs(unsigned long nsecs);
-extern int tracing_sched_switch_enabled;
extern unsigned long tracing_max_latency;
extern unsigned long tracing_thresh;
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 412c226..c4e0134 100644
--- a/kernel/trace/trace_sched_switch.c
+++ b/kernel/trace/trace_sched_switch.c
@@ -16,7 +16,6 @@
static struct trace_array *ctx_trace;
static int __read_mostly tracer_enabled;
-int __read_mostly tracing_sched_switch_enabled;
static void notrace
ctx_switch_func(struct task_struct *prev, struct task_struct *next)
@@ -114,12 +113,6 @@ __init static int init_sched_switch_trace(void)
{
int ret;
- ret = register_tracer(&sched_switch_trace);
- if (ret)
- return ret;
-
- tracing_sched_switch_enabled = 1;
-
- return ret;
+ return register_tracer(&sched_switch_trace);
}
device_initcall(init_sched_switch_trace);
next prev parent reply other threads:[~2008-02-10 15:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-10 7:20 [13/19] ftrace: add tracing of context switches Ingo Molnar
2008-02-10 15:49 ` Eugene Teo [this message]
2008-02-10 15:55 ` [PATCH] ftrace: remove unused tracing_sched_switch_enabled Eugene Teo
2008-02-11 10:13 ` Ingo Molnar
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=20080210154923.GA15451@kernel.sg \
--to=eugeneteo@kernel.sg \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.