diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/trace/trace_hw_branches.c | 6 | ||||
| -rw-r--r-- | kernel/trace/trace_selftest.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/kernel/trace/trace_hw_branches.c b/kernel/trace/trace_hw_branches.c index 4ca82700c04e..8b2109a6c61c 100644 --- a/kernel/trace/trace_hw_branches.c +++ b/kernel/trace/trace_hw_branches.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * h/w branch tracer for x86 based on bts | 2 | * h/w branch tracer for x86 based on BTS |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2008-2009 Intel Corporation. | 4 | * Copyright (C) 2008-2009 Intel Corporation. |
| 5 | * Markus Metzger <markus.t.metzger@gmail.com>, 2008-2009 | 5 | * Markus Metzger <markus.t.metzger@gmail.com>, 2008-2009 |
| @@ -15,8 +15,8 @@ | |||
| 15 | 15 | ||
| 16 | #include <asm/ds.h> | 16 | #include <asm/ds.h> |
| 17 | 17 | ||
| 18 | #include "trace.h" | ||
| 19 | #include "trace_output.h" | 18 | #include "trace_output.h" |
| 19 | #include "trace.h" | ||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | #define BTS_BUFFER_SIZE (1 << 13) | 22 | #define BTS_BUFFER_SIZE (1 << 13) |
| @@ -197,10 +197,10 @@ static void bts_trace_print_header(struct seq_file *m) | |||
| 197 | 197 | ||
| 198 | static enum print_line_t bts_trace_print_line(struct trace_iterator *iter) | 198 | static enum print_line_t bts_trace_print_line(struct trace_iterator *iter) |
| 199 | { | 199 | { |
| 200 | unsigned long symflags = TRACE_ITER_SYM_OFFSET; | ||
| 200 | struct trace_entry *entry = iter->ent; | 201 | struct trace_entry *entry = iter->ent; |
| 201 | struct trace_seq *seq = &iter->seq; | 202 | struct trace_seq *seq = &iter->seq; |
| 202 | struct hw_branch_entry *it; | 203 | struct hw_branch_entry *it; |
| 203 | unsigned long symflags = TRACE_ITER_SYM_OFFSET; | ||
| 204 | 204 | ||
| 205 | trace_assign_type(it, entry); | 205 | trace_assign_type(it, entry); |
| 206 | 206 | ||
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 3c7b797d0d28..b91091267067 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c | |||
| @@ -189,6 +189,7 @@ int trace_selftest_startup_dynamic_tracing(struct tracer *trace, | |||
| 189 | #else | 189 | #else |
| 190 | # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) | 190 | # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) |
| 191 | #endif /* CONFIG_DYNAMIC_FTRACE */ | 191 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
| 192 | |||
| 192 | /* | 193 | /* |
| 193 | * Simple verification test of ftrace function tracer. | 194 | * Simple verification test of ftrace function tracer. |
| 194 | * Enable ftrace, sleep 1/10 second, and then read the trace | 195 | * Enable ftrace, sleep 1/10 second, and then read the trace |
| @@ -698,10 +699,10 @@ int | |||
| 698 | trace_selftest_startup_hw_branches(struct tracer *trace, | 699 | trace_selftest_startup_hw_branches(struct tracer *trace, |
| 699 | struct trace_array *tr) | 700 | struct trace_array *tr) |
| 700 | { | 701 | { |
| 701 | unsigned long count; | ||
| 702 | int ret; | ||
| 703 | struct trace_iterator iter; | 702 | struct trace_iterator iter; |
| 704 | struct tracer tracer; | 703 | struct tracer tracer; |
| 704 | unsigned long count; | ||
| 705 | int ret; | ||
| 705 | 706 | ||
| 706 | if (!trace->open) { | 707 | if (!trace->open) { |
| 707 | printk(KERN_CONT "missing open function..."); | 708 | printk(KERN_CONT "missing open function..."); |
