Skip to content

Commit

Permalink
ftrace: cleanups
Browse files Browse the repository at this point in the history
clean up recent code.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 23, 2008
1 parent 6fb44b7 commit 9ff9cdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ static int ftrace_record_suspend;

static struct dyn_ftrace *ftrace_free_records;

static inline int
notrace ftrace_ip_in_hash(unsigned long ip, unsigned long key)
static inline int notrace
ftrace_ip_in_hash(unsigned long ip, unsigned long key)
{
struct dyn_ftrace *p;
struct hlist_node *t;
Expand Down Expand Up @@ -1249,6 +1249,7 @@ static int __init notrace ftrace_dynamic_init(void)
int ret;

addr = (unsigned long)ftrace_record_ip;

stop_machine_run(ftrace_dyn_arch_init, &addr, NR_CPUS);

/* ftrace_dyn_arch_init places the return code in addr */
Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/trace_irqsoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/trace_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <linux/kthread.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) {
case TRACE_FN:
Expand Down

0 comments on commit 9ff9cdb

Please sign in to comment.