2021-01-25 15:07:10 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Paul Scharnofske
|
2022-02-09 16:15:55 +00:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-01-25 15:07:10 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-01-25 15:07:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-11-27 12:46:43 +00:00
|
|
|
#ifndef AC97_DEBUG
|
|
|
|
#cmakedefine01 AC97_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2022-02-09 16:15:55 +00:00
|
|
|
#ifndef AHCI_DEBUG
|
|
|
|
#cmakedefine01 AHCI_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef ACPI_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 ACPI_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef APIC_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 APIC_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef APIC_SMP_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 APIC_SMP_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ARP_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 ARP_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-11-26 17:39:26 +00:00
|
|
|
#ifndef ATA_DEBUG
|
|
|
|
#cmakedefine01 ATA_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef BBFS_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 BBFS_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef BXVGA_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 BXVGA_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef COMMIT_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 COMMIT_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CONTEXT_SWITCH_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 CONTEXT_SWITCH_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2022-09-02 18:59:01 +00:00
|
|
|
#ifndef DUMP_REGIONS_ON_CRASH
|
|
|
|
#cmakedefine01 DUMP_REGIONS_ON_CRASH
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef E1000_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 E1000_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ETHERNET_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 ETHERNET_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EXEC_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 EXEC_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-03-11 18:22:13 +00:00
|
|
|
#ifndef EXT2_BLOCKLIST_DEBUG
|
|
|
|
#cmakedefine01 EXT2_BLOCKLIST_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef EXT2_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 EXT2_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EXT2_VERY_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 EXT2_VERY_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2022-09-18 16:21:10 +00:00
|
|
|
#ifndef FAT_DEBUG
|
|
|
|
#cmakedefine01 FAT_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef FORK_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 FORK_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FUTEX_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 FUTEX_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FUTEXQUEUE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 FUTEXQUEUE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HPET_COMPARATOR_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 HPET_COMPARATOR_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HPET_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 HPET_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ICMP_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 ICMP_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-04-12 19:07:30 +00:00
|
|
|
#ifndef INTEL_GRAPHICS_DEBUG
|
|
|
|
#cmakedefine01 INTEL_GRAPHICS_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2023-03-10 19:10:06 +00:00
|
|
|
#ifndef INTEL_HDA_DEBUG
|
|
|
|
#cmakedefine01 INTEL_HDA_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef INTERRUPT_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 INTERRUPT_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef IO_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 IO_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2022-02-09 16:15:55 +00:00
|
|
|
#ifndef IOAPIC_DEBUG
|
|
|
|
#cmakedefine01 IOAPIC_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-07-29 20:19:12 +00:00
|
|
|
#ifndef ISO9660_DEBUG
|
|
|
|
#cmakedefine01 ISO9660_DEBUG
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ISO9660_VERY_DEBUG
|
|
|
|
#cmakedefine01 ISO9660_VERY_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef IPV4_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 IPV4_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef IPV4_SOCKET_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 IPV4_SOCKET_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef IRQ_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 IRQ_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef KEYBOARD_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 KEYBOARD_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-03-11 14:26:02 +00:00
|
|
|
#ifndef KMALLOC_DEBUG
|
|
|
|
#cmakedefine01 KMALLOC_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-05-14 11:09:06 +00:00
|
|
|
#ifndef KMALLOC_VERIFY_NO_SPINLOCK_HELD
|
|
|
|
#cmakedefine01 KMALLOC_VERIFY_NO_SPINLOCK_HELD
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef LOCAL_SOCKET_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 LOCAL_SOCKET_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LOCK_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 LOCK_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-08-23 04:06:44 +00:00
|
|
|
#ifndef LOCK_IN_CRITICAL_DEBUG
|
|
|
|
#cmakedefine01 LOCK_IN_CRITICAL_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-09-14 18:05:17 +00:00
|
|
|
#ifndef LOCK_RANK_ENFORCEMENT
|
|
|
|
#cmakedefine01 LOCK_RANK_ENFORCEMENT
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef LOCK_RESTORE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 LOCK_RESTORE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2022-01-28 23:47:18 +00:00
|
|
|
#ifndef LOCK_SHARED_UPGRADE_DEBUG
|
|
|
|
#cmakedefine01 LOCK_SHARED_UPGRADE_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef LOCK_TRACE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 LOCK_TRACE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2023-06-17 08:37:47 +00:00
|
|
|
#ifndef LOOPBACK_DEBUG
|
|
|
|
#cmakedefine01 LOOPBACK_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef MASTERPTY_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 MASTERPTY_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-04-02 20:21:35 +00:00
|
|
|
#ifndef MOUSE_DEBUG
|
|
|
|
#cmakedefine01 MOUSE_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2022-04-01 16:52:22 +00:00
|
|
|
#ifndef MEMORY_DEVICE_DEBUG
|
|
|
|
#cmakedefine01 MEMORY_DEVICE_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef MULTIPROCESSOR_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 MULTIPROCESSOR_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NETWORK_TASK_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 NETWORK_TASK_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-12-16 15:07:54 +00:00
|
|
|
#ifndef NVME_DEBUG
|
|
|
|
#cmakedefine01 NVME_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef OFFD_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 OFFD_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PAGE_FAULT_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 PAGE_FAULT_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PATA_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 PATA_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PCI_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 PCI_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef POLL_SELECT_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 POLL_SELECT_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PROCESS_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 PROCESS_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PROCFS_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 PROCFS_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PS2MOUSE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 PS2MOUSE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PTMX_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 PTMX_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ROUTING_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 ROUTING_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-04-02 14:53:31 +00:00
|
|
|
#ifndef RTL8168_DEBUG
|
|
|
|
#cmakedefine01 RTL8168_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef SCHEDULER_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 SCHEDULER_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SCHEDULER_RUNNABLE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 SCHEDULER_RUNNABLE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SIGNAL_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 SIGNAL_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SLAVEPTY_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 SLAVEPTY_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SMP_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 SMP_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SOCKET_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 SOCKET_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STORAGE_DEVICE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 STORAGE_DEVICE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2022-08-06 14:40:07 +00:00
|
|
|
#ifndef SYSFS_DEBUG
|
|
|
|
#cmakedefine01 SYSFS_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef TCP_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 TCP_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TCP_SOCKET_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 TCP_SOCKET_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef THREAD_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 THREAD_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TTY_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 TTY_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef UDP_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 UDP_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef UHCI_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 UHCI_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef UHCI_VERBOSE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 UHCI_VERBOSE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-02-27 04:10:37 +00:00
|
|
|
#ifndef USB_DEBUG
|
|
|
|
#cmakedefine01 USB_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef VFS_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 VFS_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef VMWARE_BACKDOOR_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 VMWARE_BACKDOOR_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
2021-01-02 17:53:05 +00:00
|
|
|
#ifndef VIRTIO_DEBUG
|
|
|
|
#cmakedefine01 VIRTIO_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-04-16 19:58:51 +00:00
|
|
|
#ifndef VIRTUAL_CONSOLE_DEBUG
|
|
|
|
#cmakedefine01 VIRTUAL_CONSOLE_DEBUG
|
|
|
|
#endif
|
|
|
|
|
2021-01-30 15:47:20 +00:00
|
|
|
#ifndef WAITBLOCK_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 WAITBLOCK_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WAITQUEUE_DEBUG
|
2021-01-25 15:07:10 +00:00
|
|
|
#cmakedefine01 WAITQUEUE_DEBUG
|
2021-01-30 15:47:20 +00:00
|
|
|
#endif
|