Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1224702
| From | Minfei Huang <mhuang@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time |
| Date | 2015-09-15 09:10 +0200 |
| Message-ID | <q8Sxk-635-39@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From: Minfei Huang <mnfhuang@gmail.com>
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 b0623ac..d790f28 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2766,7 +2766,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)
@@ -2826,7 +2825,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;
@@ -2852,8 +2850,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++) {
@@ -2894,8 +2890,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.1.0
--
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/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Minfei Huang <mhuang@redhat.com> - 2015-09-15 09:10 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Steven Rostedt <rostedt@goodmis.org> - 2015-09-15 15:40 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Minfei Huang <mnfhuang@gmail.com> - 2015-09-15 17:40 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Steven Rostedt <rostedt@goodmis.org> - 2015-09-15 18:00 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Minfei Huang <mnfhuang@gmail.com> - 2015-09-15 18:10 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Steven Rostedt <rostedt@goodmis.org> - 2015-09-15 18:20 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Minfei Huang <mnfhuang@gmail.com> - 2015-09-15 18:40 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Steven Rostedt <rostedt@goodmis.org> - 2015-09-15 19:10 +0200
Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time Minfei Huang <mnfhuang@gmail.com> - 2015-09-16 04:20 +0200
csiph-web