diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2008-01-30 13:32:03 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:32:03 +0100 |
commit | e6ae5d9540727b0e2e5e2fbeb683c84671ed0a31 (patch) | |
tree | 921ac1e9d98478b4d3b23171e965b868df7e36a9 /arch/x86/kernel/ptrace.c | |
parent | da35c37198132abebf877cca2ad3c6d9bcd84282 (diff) | |
download | blackbird-op-linux-e6ae5d9540727b0e2e5e2fbeb683c84671ed0a31.tar.gz blackbird-op-linux-e6ae5d9540727b0e2e5e2fbeb683c84671ed0a31.zip |
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.c | 2 |
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, retval = ds_read_bts((void *)child->thread.ds_area_msr, bts_index, &ret); - if (retval) + if (retval < 0) return retval; if (copy_to_user(out, &ret, sizeof(ret))) |