Commit 9ff9cdb2 authored by Ingo Molnar's avatar Ingo Molnar Committed by Thomas Gleixner

ftrace: cleanups

clean up recent code.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 6fb44b71
...@@ -197,8 +197,8 @@ static int ftrace_record_suspend; ...@@ -197,8 +197,8 @@ static int ftrace_record_suspend;
static struct dyn_ftrace *ftrace_free_records; static struct dyn_ftrace *ftrace_free_records;
static inline int static inline int notrace
notrace ftrace_ip_in_hash(unsigned long ip, unsigned long key) ftrace_ip_in_hash(unsigned long ip, unsigned long key)
{ {
struct dyn_ftrace *p; struct dyn_ftrace *p;
struct hlist_node *t; struct hlist_node *t;
...@@ -1249,6 +1249,7 @@ static int __init notrace ftrace_dynamic_init(void) ...@@ -1249,6 +1249,7 @@ static int __init notrace ftrace_dynamic_init(void)
int ret; int ret;
addr = (unsigned long)ftrace_record_ip; addr = (unsigned long)ftrace_record_ip;
stop_machine_run(ftrace_dyn_arch_init, &addr, NR_CPUS); stop_machine_run(ftrace_dyn_arch_init, &addr, NR_CPUS);
/* ftrace_dyn_arch_init places the return code in addr */ /* ftrace_dyn_arch_init places the return code in addr */
......
...@@ -309,7 +309,7 @@ void trace_softirqs_off(unsigned long ip) ...@@ -309,7 +309,7 @@ void trace_softirqs_off(unsigned long ip)
{ {
} }
inline void print_irqtrace_events(struct task_struct *curr) inline notrace void print_irqtrace_events(struct task_struct *curr)
{ {
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/delay.h> #include <linux/delay.h>
static inline int trace_valid_entry(struct trace_entry *entry) static notrace inline int trace_valid_entry(struct trace_entry *entry)
{ {
switch (entry->type) { switch (entry->type) {
case TRACE_FN: case TRACE_FN:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment