_stp_is_compat_task is not required for uprobes2 since uprobes2 is only used
for rhel6 and rhel7.
#ifdef CONFIG_X86_32
#define SLOT_IP(tsk) 12
#else
-#define SLOT_IP(tsk) (_stp_is_compat_task2(tsk) ? 12 : 16)
+#define SLOT_IP(tsk) (test_tsk_thread_flag(tsk, TIF_IA32) ? 12 : 16)
#endif
#define BREAKPOINT_SIGNAL SIGTRAP
static inline unsigned long arch_predict_sp_at_ret(struct pt_regs *regs,
struct task_struct *tsk)
{
- if (_stp_is_compat_task2(tsk))
+ if (test_tsk_thread_flag(tsk, TIF_IA32))
return (unsigned long) (regs->sp + 4 + STRUCT_RETURN_SLOP);
else
return (unsigned long) (regs->sp + 8);