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:
committed by
Ingo Molnar
parent
da35c37198
commit
e6ae5d9540
@@ -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)))
|
||||
|
Reference in New Issue
Block a user