aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ptrace.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2008-01-30 07:32:03 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:32:03 -0500
commite6ae5d9540727b0e2e5e2fbeb683c84671ed0a31 (patch)
tree921ac1e9d98478b4d3b23171e965b868df7e36a9 /arch/x86/kernel/ptrace.c
parentda35c37198132abebf877cca2ad3c6d9bcd84282 (diff)
x86, ptrace: support 32bit-cross-64bit BTS recording
Support BTS recording of 32bit and 64bit tasks from 32bit or 64bit tasks. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r--arch/x86/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 88ed1e74cee9..236528bec6eb 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -558,7 +558,7 @@ static int ptrace_bts_read_record(struct task_struct *child,
558 558
559 retval = ds_read_bts((void *)child->thread.ds_area_msr, 559 retval = ds_read_bts((void *)child->thread.ds_area_msr,
560 bts_index, &ret); 560 bts_index, &ret);
561 if (retval) 561 if (retval < 0)
562 return retval; 562 return retval;
563 563
564 if (copy_to_user(out, &ret, sizeof(ret))) 564 if (copy_to_user(out, &ret, sizeof(ret)))