diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-11-15 03:50:38 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-15 03:50:41 -0500 |
commit | 39dc78b6510323848e3356452f7dab9499736978 (patch) | |
tree | cf8a8fede74e41b203fd00e3ccd21ead2e851442 /kernel/trace | |
parent | 4c49b12853fbb5eff4849b7b6a1e895776f027a1 (diff) | |
parent | 156171c71a0dc4bce12b4408bb1591f8fe32dc1a (diff) |
Merge commit 'v2.6.32-rc7' into perf/core
Merge reason: pick up perf fixlets
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/ftrace.c | 6 | ||||
-rw-r--r-- | kernel/trace/ring_buffer.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 1ed514fe3a30..7cb6f1922598 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2199,15 +2199,15 @@ ftrace_regex_write(struct file *file, const char __user *ubuf, | |||
2199 | ret = ftrace_process_regex(parser->buffer, | 2199 | ret = ftrace_process_regex(parser->buffer, |
2200 | parser->idx, enable); | 2200 | parser->idx, enable); |
2201 | if (ret) | 2201 | if (ret) |
2202 | goto out; | 2202 | goto out_unlock; |
2203 | 2203 | ||
2204 | trace_parser_clear(parser); | 2204 | trace_parser_clear(parser); |
2205 | } | 2205 | } |
2206 | 2206 | ||
2207 | ret = read; | 2207 | ret = read; |
2208 | 2208 | out_unlock: | |
2209 | mutex_unlock(&ftrace_regex_lock); | 2209 | mutex_unlock(&ftrace_regex_lock); |
2210 | out: | 2210 | |
2211 | return ret; | 2211 | return ret; |
2212 | } | 2212 | } |
2213 | 2213 | ||
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 63446f12e470..db223fe8887f 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -1196,6 +1196,7 @@ rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned nr_pages) | |||
1196 | atomic_inc(&cpu_buffer->record_disabled); | 1196 | atomic_inc(&cpu_buffer->record_disabled); |
1197 | synchronize_sched(); | 1197 | synchronize_sched(); |
1198 | 1198 | ||
1199 | spin_lock_irq(&cpu_buffer->reader_lock); | ||
1199 | rb_head_page_deactivate(cpu_buffer); | 1200 | rb_head_page_deactivate(cpu_buffer); |
1200 | 1201 | ||
1201 | for (i = 0; i < nr_pages; i++) { | 1202 | for (i = 0; i < nr_pages; i++) { |
@@ -1210,6 +1211,7 @@ rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned nr_pages) | |||
1210 | return; | 1211 | return; |
1211 | 1212 | ||
1212 | rb_reset_cpu(cpu_buffer); | 1213 | rb_reset_cpu(cpu_buffer); |
1214 | spin_unlock_irq(&cpu_buffer->reader_lock); | ||
1213 | 1215 | ||
1214 | rb_check_pages(cpu_buffer); | 1216 | rb_check_pages(cpu_buffer); |
1215 | 1217 | ||