chore: Disable preemption logging

main
Sean McBride 4 years ago
parent 9a673da0a1
commit 5102647b96

@ -57,7 +57,7 @@ BINARY_NAME=sledgert
# CFLAGS += -DLOG_CONTEXT_SWITCHES
# CFLAGS += -DLOG_ADMISSIONS_CONTROL
# CFLAGS += -DLOG_REQUEST_ALLOCATION
CFLAGS += -DLOG_PREEMPTION
# CFLAGS += -DLOG_PREEMPTION
# CFLAGS += -DLOG_MODULE_LOADING
# This dumps per module *.csv files containing the cycle a sandbox has been in RUNNING when each

@ -57,8 +57,10 @@ sigalrm_propagate_workers(siginfo_t *signal_info)
/* Signal was sent directly by the kernel, so forward to other threads */
if (signal_info->si_code == SI_KERNEL) {
software_interrupt_SIGALRM_kernel_count++;
#ifdef LOG_PREEMPTION
debuglog("Kernel SIGALRM: %d!\n", software_interrupt_SIGALRM_kernel_count);
#endif
for (int i = 0; i < runtime_worker_threads_count; i++) {
debuglog("Kernel SIGALRM: %d!\n", software_interrupt_SIGALRM_kernel_count);
if (pthread_self() == runtime_worker_threads[i]) continue;
/* All threads should have been initialized */
@ -78,7 +80,9 @@ sigalrm_propagate_workers(siginfo_t *signal_info)
}
} else {
software_interrupt_SIGALRM_thread_count++;
#ifdef LOG_PREEMPTION
debuglog("Thread SIGALRM: %d!\n", software_interrupt_SIGALRM_thread_count);
#endif
/* Signal forwarded from another thread. Just confirm it resulted from pthread_kill */
assert(signal_info->si_code == SI_TKILL);
}

Loading…
Cancel
Save