1 #ifndef KERNEL_TRACING_CONFIG_H 2 #define KERNEL_TRACING_CONFIG_H 3 4 // general settings 5 6 // enable tracing (0/1) 7 #ifndef ENABLE_TRACING 8 # define ENABLE_TRACING 0 9 #endif 10 11 // tracing buffer size (in bytes) 12 #ifndef MAX_TRACE_SIZE 13 # define MAX_TRACE_SIZE (20 * 1024 * 1024) 14 #endif 15 16 17 #if ENABLE_TRACING 18 19 // macros specifying the tracing level for individual components (0 is disabled) 20 21 #define AHCI_PORT_TRACING 0 22 #define ATA_DMA_TRACING 0 23 #define ATA_TRACING 0 24 #define ATAPI_TRACING 0 25 #define BFS_TRACING 0 26 #define BLOCK_CACHE_BLOCK_TRACING 0 27 #define BLOCK_CACHE_TRANSACTION_TRACING 0 28 #define BMESSAGE_TRACING 0 29 #define FILE_DESCRIPTOR_TRACING 0 30 #define FILE_DESCRIPTOR_TRACING_STACK_TRACE 0 /* stack trace depth */ 31 #define GUARDED_HEAP_TRACING 0 32 #define GUARDED_HEAP_TRACING_STACK_TRACE 0 /* stack trace depth */ 33 #define IO_CONTEXT_TRACING 0 34 #define IO_CONTEXT_TRACING_STACK_TRACE 0 /* stack trace depth */ 35 #define KERNEL_HEAP_TRACING 0 36 #define KTRACE_PRINTF_STACK_TRACE 0 /* stack trace depth */ 37 #define NET_BUFFER_TRACING 0 38 #define NET_BUFFER_TRACING_STACK_TRACE 0 /* stack trace depth */ 39 #define PAGE_ALLOCATION_TRACING 0 40 #define PAGE_ALLOCATION_TRACING_STACK_TRACE 0 /* stack trace depth */ 41 #define PAGE_DAEMON_TRACING 0 42 #define PAGE_STATE_TRACING 0 43 #define PAGE_STATE_TRACING_STACK_TRACE 0 /* stack trace depth */ 44 #define PAGE_WRITER_TRACING 0 45 #define PARANOIA_TRACING 0 46 #define PARANOIA_TRACING_STACK_TRACE 0 /* stack trace depth */ 47 #define PORT_TRACING 0 48 #define RUNTIME_LOADER_TRACING 0 49 #define SCHEDULER_TRACING 0 50 #define SCHEDULING_ANALYSIS_TRACING 0 51 #define SIGNAL_TRACING 0 52 #define SLAB_MEMORY_MANAGER_TRACING 0 53 #define SLAB_MEMORY_MANAGER_TRACING_STACK_TRACE 0 /* stack trace depth */ 54 #define SLAB_OBJECT_CACHE_TRACING 0 55 #define SLAB_OBJECT_CACHE_TRACING_STACK_TRACE 0 /* stack trace depth */ 56 #define SWAP_TRACING 0 57 #define SYSCALL_TRACING 0 58 #define SYSCALL_TRACING_IGNORE_KTRACE_OUTPUT 1 59 #define TCP_TRACING 0 60 #define TEAM_TRACING 0 61 #define USER_MALLOC_TRACING 0 62 #define VFS_PAGES_IO_TRACING 0 63 #define VM_CACHE_TRACING 0 64 #define VM_CACHE_TRACING_STACK_TRACE 0 /* stack trace depth */ 65 #define VM_PAGE_FAULT_TRACING 0 66 #define WAIT_FOR_OBJECTS_TRACING 0 67 68 #endif // ENABLE_TRACING 69 70 #endif // KERNEL_TRACING_CONFIG_H 71