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>
This commit is contained in:
Markus Metzger
2008-01-30 13:32:03 +01:00
committed by Ingo Molnar
parent da35c37198
commit e6ae5d9540
4 changed files with 53 additions and 54 deletions

View File

@@ -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)))