Lines Matching +full:re +full:- +full:enabled

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015 Anton Ivanov (aivanov@{brocade.com,kot-begemot.co.uk})
6 * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
16 #include <as-layout.h>
57 * be able to profile all of UML, not just the non-critical sections. If
58 * profiling is not thread-safe, then that is not my problem. We can disable
59 * profiling when SMP is enabled in that case.
76 int enabled = signals_enabled; in sig_handler() local
89 if (!enabled && (sig == SIGIO)) { in sig_handler()
91 * In TT_MODE_EXTERNAL, need to still call time-travel in sig_handler()
94 * Note we won't get here if signals are hard-blocked in sig_handler()
95 * (which is handled above), in that case the hard- in sig_handler()
109 um_set_signals_trace(enabled); in sig_handler()
125 int enabled; in timer_alarm_handler() local
127 enabled = signals_enabled; in timer_alarm_handler()
141 um_set_signals_trace(enabled); in timer_alarm_handler()
192 mcontext_t *mc = &uc->uc_mcontext; in hard_handler()
220 panic("sigaction failed - errno = %d\n", errno); in set_handler()
225 panic("sigprocmask failed - errno = %d\n", errno); in set_handler()
240 return -errno; in change_sig()
271 * interrupts may have arrived and we need to re-enable them and in unblock_signals()
277 * way, signals_pending won't be changed while we're reading it. in unblock_signals()
293 * be enabled again above. We need to trace this, as we're in unblock_signals()
322 /* Re-enable signals and trace that we're doing so. */ in unblock_signals()
362 * it isn't a read-modify-write with a signal in mark_sigio_pending()
367 * time-travel=ext simulation mode, in which case in mark_sigio_pending()
388 if (--signals_blocked) in unblock_signals_hard()
392 * SIGIO handler will run as normal unless we're still in unblock_signals_hard()
406 * the outermost call - 'unblocking' serves as an ownership for the in unblock_signals_hard()
415 /* signals are enabled so we can touch this */ in unblock_signals_hard()
425 * we need to run time-travel handlers even in unblock_signals_hard()
426 * if not enabled in unblock_signals_hard()
434 * the decrement, not during a read-modify-write: in unblock_signals_hard()
435 * - If it happens before, it can increment it and we'll in unblock_signals_hard()
437 * - If it happens after it'll see 0 for both signals_blocked in unblock_signals_hard()