From: Minfei Huang <mnfhuang@gmail.com>
To: rostedt@goodmis.org, mingo@redhat.com
Cc: linux-kernel@vger.kernel.org, mhuang@redhat.com,
Minfei Huang <mnfhuang@gmail.com>
Subject: [PATCH 1/2] ftrace: Remove the unused variant ftrace_update_time
Date: Sun, 26 Jul 2015 23:55:51 +0800 [thread overview]
Message-ID: <1437926152-12352-1-git-send-email-mnfhuang@gmail.com> (raw)
Since the patch "ftrace: remove daemon(cb7be3b)" remove the function
ftraced, the variant ftrace_update_time never be used any more.
Remove the unused variant ftrace_update_time.
Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
---
kernel/trace/ftrace.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index eb11011..c04dff9 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2761,7 +2761,6 @@ static void ftrace_shutdown_sysctl(void)
}
}
-static cycle_t ftrace_update_time;
unsigned long ftrace_update_tot_cnt;
static inline int ops_traces_mod(struct ftrace_ops *ops)
@@ -2821,7 +2820,6 @@ static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs)
{
struct ftrace_page *pg;
struct dyn_ftrace *p;
- cycle_t start, stop;
unsigned long update_cnt = 0;
unsigned long ref = 0;
bool test = false;
@@ -2847,8 +2845,6 @@ static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs)
}
}
- start = ftrace_now(raw_smp_processor_id());
-
for (pg = new_pgs; pg; pg = pg->next) {
for (i = 0; i < pg->index; i++) {
@@ -2889,8 +2885,6 @@ static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs)
}
}
- stop = ftrace_now(raw_smp_processor_id());
- ftrace_update_time = stop - start;
ftrace_update_tot_cnt += update_cnt;
return 0;
--
2.4.0
next reply other threads:[~2015-07-26 15:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-26 15:55 Minfei Huang [this message]
2015-07-26 15:55 ` [PATCH 2/2] ftrace: Make if condition correctly due to the operator order Minfei Huang
2015-07-27 2:20 ` yalin wang
2015-07-27 2:42 ` Minfei Huang
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=1437926152-12352-1-git-send-email-mnfhuang@gmail.com \
--to=mnfhuang@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhuang@redhat.com \
--cc=mingo@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome