ptrace/x86: Introduce set_task_blockstep() helper
authorOleg Nesterov <oleg@redhat.com>
Fri, 3 Aug 2012 15:31:46 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 23:02:09 +0000 (16:02 -0700)
commitfa060a3631ad4f9d555e0bc6d9a4d4147137cef9
tree164f99c03bc68c1108c9bb701026a6e24457fd49
parent65d41bb38519d09387b630e411e109423ccfff29
ptrace/x86: Introduce set_task_blockstep() helper

commit 848e8f5f0ad3169560c516fff6471be65f76e69f upstream.

No functional changes, preparation for the next fix and for uprobes
single-step fixes.

Move the code playing with TIF_BLOCKSTEP/DEBUGCTLMSR_BTF into the
new helper, set_task_blockstep().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/step.c