Lines Matching refs:ti_work
45 unsigned long ti_work) in syscall_trace_enter() argument
50 if (ti_work & (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_EMU)) { in syscall_trace_enter()
52 if (ret || (ti_work & _TIF_SYSCALL_EMU)) in syscall_trace_enter()
57 if (ti_work & _TIF_SECCOMP) { in syscall_trace_enter()
66 if (unlikely(ti_work & _TIF_SYSCALL_TRACEPOINT)) in syscall_trace_enter()
77 unsigned long ti_work; in __syscall_enter_from_user_work() local
79 ti_work = READ_ONCE(current_thread_info()->flags); in __syscall_enter_from_user_work()
80 if (ti_work & SYSCALL_ENTER_WORK) in __syscall_enter_from_user_work()
81 syscall = syscall_trace_enter(regs, syscall, ti_work); in __syscall_enter_from_user_work()
141 unsigned long ti_work) in exit_to_user_mode_loop() argument
147 while (ti_work & EXIT_TO_USER_MODE_WORK) { in exit_to_user_mode_loop()
149 local_irq_enable_exit_to_user(ti_work); in exit_to_user_mode_loop()
151 if (ti_work & _TIF_NEED_RESCHED) in exit_to_user_mode_loop()
154 if (ti_work & _TIF_UPROBE) in exit_to_user_mode_loop()
157 if (ti_work & _TIF_PATCH_PENDING) in exit_to_user_mode_loop()
160 if (ti_work & _TIF_SIGPENDING) in exit_to_user_mode_loop()
163 if (ti_work & _TIF_NOTIFY_RESUME) { in exit_to_user_mode_loop()
169 arch_exit_to_user_mode_work(regs, ti_work); in exit_to_user_mode_loop()
177 ti_work = READ_ONCE(current_thread_info()->flags); in exit_to_user_mode_loop()
181 return ti_work; in exit_to_user_mode_loop()
186 unsigned long ti_work = READ_ONCE(current_thread_info()->flags); in exit_to_user_mode_prepare() local
190 if (unlikely(ti_work & EXIT_TO_USER_MODE_WORK)) in exit_to_user_mode_prepare()
191 ti_work = exit_to_user_mode_loop(regs, ti_work); in exit_to_user_mode_prepare()
193 arch_exit_to_user_mode_prepare(regs, ti_work); in exit_to_user_mode_prepare()
202 static inline bool report_single_step(unsigned long ti_work) in report_single_step() argument
214 static inline bool report_single_step(unsigned long ti_work) in report_single_step() argument
216 return (ti_work & SYSEMU_STEP) == _TIF_SINGLESTEP; in report_single_step()
220 static void syscall_exit_work(struct pt_regs *regs, unsigned long ti_work) in syscall_exit_work() argument
226 if (ti_work & _TIF_SYSCALL_TRACEPOINT) in syscall_exit_work()
229 step = report_single_step(ti_work); in syscall_exit_work()
230 if (step || ti_work & _TIF_SYSCALL_TRACE) in syscall_exit_work()