diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-30 15:35:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-30 15:35:01 -0400 |
commit | bc7d352c5e76c74c628a39b99777a1bdddde5e81 (patch) | |
tree | 3cc0a80defb54d284e2a9a1e69b1224064921775 /kernel/trace/trace.c | |
parent | b3f2f6cd1ff935ecac9a5346904b899d7af689fe (diff) | |
parent | 92af1abde4f2d74c9e5f7b670a1971779ed0b051 (diff) |
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
perf tui: Fix last use_browser problem related to .perfconfig
perf symbols: Add the build id cache to the vmlinux path
perf tui: Reset use_browser if stdout is not a tty
ring-buffer: Move zeroing out excess in page to ring buffer code
ring-buffer: Reset "real_end" when page is filled
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 55e48511d7c8..086d36316805 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -3666,7 +3666,6 @@ tracing_buffers_read(struct file *filp, char __user *ubuf, | |||
3666 | size_t count, loff_t *ppos) | 3666 | size_t count, loff_t *ppos) |
3667 | { | 3667 | { |
3668 | struct ftrace_buffer_info *info = filp->private_data; | 3668 | struct ftrace_buffer_info *info = filp->private_data; |
3669 | unsigned int pos; | ||
3670 | ssize_t ret; | 3669 | ssize_t ret; |
3671 | size_t size; | 3670 | size_t size; |
3672 | 3671 | ||
@@ -3693,11 +3692,6 @@ tracing_buffers_read(struct file *filp, char __user *ubuf, | |||
3693 | if (ret < 0) | 3692 | if (ret < 0) |
3694 | return 0; | 3693 | return 0; |
3695 | 3694 | ||
3696 | pos = ring_buffer_page_len(info->spare); | ||
3697 | |||
3698 | if (pos < PAGE_SIZE) | ||
3699 | memset(info->spare + pos, 0, PAGE_SIZE - pos); | ||
3700 | |||
3701 | read: | 3695 | read: |
3702 | size = PAGE_SIZE - info->read; | 3696 | size = PAGE_SIZE - info->read; |
3703 | if (size > count) | 3697 | if (size > count) |