Ticket #18904: 18904.patch
File 18904.patch, 20.7 KB (added by , 6 months ago) |
---|
-
build/config_headers/tracing_config.h
diff --git a/build/config_headers/tracing_config.h b/build/config_headers/tracing_config.h index 2cbab809a5..3feec7ce46 100644
a b 5 5 6 6 // enable tracing (0/1) 7 7 #ifndef ENABLE_TRACING 8 # define ENABLE_TRACING 08 # define ENABLE_TRACING 1 9 9 #endif 10 10 11 11 // tracing buffer size (in bytes) … … 18 18 19 19 // macros specifying the tracing level for individual components (0 is disabled) 20 20 21 #define AHCI_PORT_TRACING 022 #define ATA_DMA_TRACING 023 #define ATA_TRACING 024 #define ATAPI_TRACING 025 #define BFS_TRACING 026 #define BLOCK_CACHE_BLOCK_TRACING 027 #define BLOCK_CACHE_TRANSACTION_TRACING 028 #define BMESSAGE_TRACING 029 #define FILE_DESCRIPTOR_TRACING 030 #define FILE_DESCRIPTOR_TRACING_STACK_TRACE 0/* stack trace depth */31 #define GUARDED_HEAP_TRACING 032 #define GUARDED_HEAP_TRACING_STACK_TRACE 0/* stack trace depth */33 #define IO_CONTEXT_TRACING 034 #define IO_CONTEXT_TRACING_STACK_TRACE 0/* stack trace depth */35 #define KERNEL_HEAP_TRACING 036 #define KTRACE_PRINTF_STACK_TRACE 0/* stack trace depth */37 #define NET_BUFFER_TRACING 038 #define NET_BUFFER_TRACING_STACK_TRACE 0/* stack trace depth */39 #define PAGE_ALLOCATION_TRACING 040 #define PAGE_ALLOCATION_TRACING_STACK_TRACE 0/* stack trace depth */41 #define PAGE_DAEMON_TRACING 042 #define PAGE_STATE_TRACING 043 #define PAGE_STATE_TRACING_STACK_TRACE 0/* stack trace depth */44 #define PAGE_WRITER_TRACING 045 #define PARANOIA_TRACING 046 #define PARANOIA_TRACING_STACK_TRACE 0/* stack trace depth */47 #define PORT_TRACING 048 #define RUNTIME_LOADER_TRACING 049 #define SCHEDULER_TRACING 050 #define SCHEDULING_ANALYSIS_TRACING 051 #define SIGNAL_TRACING 052 #define SLAB_MEMORY_MANAGER_TRACING 053 #define SLAB_MEMORY_MANAGER_TRACING_STACK_TRACE 0/* stack trace depth */54 #define SLAB_OBJECT_CACHE_TRACING 055 #define SLAB_OBJECT_CACHE_TRACING_STACK_TRACE 0/* stack trace depth */56 #define SWAP_TRACING 057 #define SYSCALL_TRACING 021 #define AHCI_PORT_TRACING 1 22 #define ATA_DMA_TRACING 1 23 #define ATA_TRACING 1 24 #define ATAPI_TRACING 1 25 #define BFS_TRACING 1 26 #define BLOCK_CACHE_BLOCK_TRACING 1 27 #define BLOCK_CACHE_TRANSACTION_TRACING 1 28 #define BMESSAGE_TRACING 1 29 #define FILE_DESCRIPTOR_TRACING 1 30 #define FILE_DESCRIPTOR_TRACING_STACK_TRACE 1 /* stack trace depth */ 31 #define GUARDED_HEAP_TRACING 1 32 #define GUARDED_HEAP_TRACING_STACK_TRACE 1 /* stack trace depth */ 33 #define IO_CONTEXT_TRACING 1 34 #define IO_CONTEXT_TRACING_STACK_TRACE 1 /* stack trace depth */ 35 #define KERNEL_HEAP_TRACING 1 36 #define KTRACE_PRINTF_STACK_TRACE 1 /* stack trace depth */ 37 #define NET_BUFFER_TRACING 1 38 #define NET_BUFFER_TRACING_STACK_TRACE 1 /* stack trace depth */ 39 #define PAGE_ALLOCATION_TRACING 1 40 #define PAGE_ALLOCATION_TRACING_STACK_TRACE 1 /* stack trace depth */ 41 #define PAGE_DAEMON_TRACING 1 42 #define PAGE_STATE_TRACING 1 43 #define PAGE_STATE_TRACING_STACK_TRACE 1 /* stack trace depth */ 44 #define PAGE_WRITER_TRACING 1 45 #define PARANOIA_TRACING 1 46 #define PARANOIA_TRACING_STACK_TRACE 1 /* stack trace depth */ 47 #define PORT_TRACING 1 48 #define RUNTIME_LOADER_TRACING 1 49 #define SCHEDULER_TRACING 1 50 #define SCHEDULING_ANALYSIS_TRACING 1 51 #define SIGNAL_TRACING 1 52 #define SLAB_MEMORY_MANAGER_TRACING 1 53 #define SLAB_MEMORY_MANAGER_TRACING_STACK_TRACE 1 /* stack trace depth */ 54 #define SLAB_OBJECT_CACHE_TRACING 1 55 #define SLAB_OBJECT_CACHE_TRACING_STACK_TRACE 1 /* stack trace depth */ 56 #define SWAP_TRACING 1 57 #define SYSCALL_TRACING 1 58 58 #define SYSCALL_TRACING_IGNORE_KTRACE_OUTPUT 1 59 #define TCP_TRACING 060 #define TEAM_TRACING 061 #define TRANSLATION_MAP_TRACING 062 #define TRANSLATION_MAP_TRACING_STACK_TRACE 0/* stack trace depth */63 #define USER_MALLOC_TRACING 064 #define VFS_PAGES_IO_TRACING 065 #define VM_CACHE_TRACING 066 #define VM_CACHE_TRACING_STACK_TRACE 0/* stack trace depth */67 #define VM_PAGE_FAULT_TRACING 068 #define WAIT_FOR_OBJECTS_TRACING 059 #define TCP_TRACING 1 60 #define TEAM_TRACING 1 61 #define TRANSLATION_MAP_TRACING 1 62 #define TRANSLATION_MAP_TRACING_STACK_TRACE 1 /* stack trace depth */ 63 #define USER_MALLOC_TRACING 1 64 #define VFS_PAGES_IO_TRACING 1 65 #define VM_CACHE_TRACING 1 66 #define VM_CACHE_TRACING_STACK_TRACE 1 /* stack trace depth */ 67 #define VM_PAGE_FAULT_TRACING 1 68 #define WAIT_FOR_OBJECTS_TRACING 1 69 69 70 70 #endif // ENABLE_TRACING 71 71 -
src/add-ons/kernel/busses/scsi/ahci/ahci_tracing.h
diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_tracing.h b/src/add-ons/kernel/busses/scsi/ahci/ahci_tracing.h index a910585f9b..edff29e49d 100644
a b class AHCIPortTraceEntry : public AbstractTraceEntry { 20 20 { 21 21 } 22 22 23 void AddDump(TraceOutput& out, const char* name) 23 //void AddDump(TraceOutput& out, const char* name) 24 void AddDump(TraceOutput& out) 24 25 { 25 26 out.Print("ahci port"); 26 out.Print(" - %s - ", name);27 //out.Print(" - %s - ", name); 27 28 out.Print("controller: %p", fController); 28 29 out.Print(", index: %d", fIndex); 29 30 } … … class AHCIPortTraceEntry : public AbstractTraceEntry { 35 36 36 37 class AHCIPortPrdTable : public AHCIPortTraceEntry { 37 38 public: 38 AHCIPortPrdTable(AHCIController* controller, int index, void*address,39 AHCIPortPrdTable(AHCIController* controller, int index, phys_addr_t address, 39 40 size_t size) 40 41 : AHCIPortTraceEntry(controller, index) 41 42 , fAddress(address) … … class AHCIPortPrdTable : public AHCIPortTraceEntry { 46 47 47 48 void AddDump(TraceOutput& out) 48 49 { 49 AHCIPortTraceEntry::AddDump(out, "prd table"); 50 //AHCIPortTraceEntry::AddDump(out, "prd table"); 51 AHCIPortTraceEntry::AddDump(out); 50 52 51 out.Print(", address: % p", fAddress);52 out.Print(", size: % lu", fSize);53 out.Print(", address: %ld", fAddress); 54 out.Print(", size: %u", fSize); 53 55 } 54 56 55 void*fAddress;57 phys_addr_t fAddress; 56 58 int fSize; 57 59 }; 58 60 -
src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp
diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index cd168a0b62..03a344cdaa 100644
a b public: 113 113 114 114 virtual void AddDump(TraceOutput& out) 115 115 { 116 out.Print("bfs:%s: block %l ld (%p), sum %lu, s/l %lu/%lu", fLabel,116 out.Print("bfs:%s: block %ld (%p), sum %u, s/l %u/%u", fLabel, 117 117 fBlock, fData, fSum, fStart, fLength); 118 118 } 119 119 … … public: 141 141 142 142 virtual void AddDump(TraceOutput& out) 143 143 { 144 out.Print("bfs:%s: block % ld, %08lx -> %08lx", fLabel,144 out.Print("bfs:%s: block %d, %08x -> %08x", fLabel, 145 145 fBlock, fOldData, fNewData); 146 146 } 147 147 … … dump_block_allocator_blocks(int argc, char** argv) 1438 1438 if (block >= first && block <= last) { 1439 1439 out.Clear(); 1440 1440 const char* dump = out.DumpEntry(entry); 1441 kprintf("%5 ld. %s\n", iterator.Index(), dump);1441 kprintf("%5d. %s\n", iterator.Index(), dump); 1442 1442 } 1443 1443 } else if (Free* entry = dynamic_cast<Free*>(_entry)) { 1444 1444 off_t first = volume->ToBlock(entry->Run()); … … dump_block_allocator_blocks(int argc, char** argv) 1446 1446 if (block >= first && block <= last) { 1447 1447 out.Clear(); 1448 1448 const char* dump = out.DumpEntry(entry); 1449 kprintf("%5 ld. %s\n", iterator.Index(), dump);1449 kprintf("%5d. %s\n", iterator.Index(), dump); 1450 1450 } 1451 1451 } 1452 1452 } -
src/add-ons/kernel/file_systems/bfs/Inode.cpp
diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp b/src/add-ons/kernel/file_systems/bfs/Inode.cpp index 5298545911..8f15d53c98 100644
a b public: 39 39 40 40 virtual void AddDump(TraceOutput& out) 41 41 { 42 out.Print("bfs:Create %l ld (%p), parent %lld (%p), \"%s\", "43 "mode % lx, omode %x, type %lx", fID, fInode, fParentID,42 out.Print("bfs:Create %ld (%p), parent %ld (%p), \"%s\", " 43 "mode %x, omode %x, type %x", fID, fInode, fParentID, 44 44 fParent, fName, fMode, fOpenMode, fType); 45 45 } 46 46 … … public: 68 68 69 69 virtual void AddDump(TraceOutput& out) 70 70 { 71 out.Print("bfs:Remove %l ld (%p), \"%s\"", fID, fInode, fName);71 out.Print("bfs:Remove %ld (%p), \"%s\"", fID, fInode, fName); 72 72 } 73 73 74 74 private: … … public: 90 90 91 91 virtual void AddDump(TraceOutput& out) 92 92 { 93 out.Print("bfs:%s %l ld (%p)\n", fAction, fID, fInode);93 out.Print("bfs:%s %ld (%p)\n", fAction, fID, fInode); 94 94 } 95 95 96 96 private: … … public: 114 114 115 115 virtual void AddDump(TraceOutput& out) 116 116 { 117 out.Print("bfs:%s %l ld (%p), %lld -> %lld", fTrim ? "Trim" : "Resize",117 out.Print("bfs:%s %ld (%p), %ld -> %ld", fTrim ? "Trim" : "Resize", 118 118 fID, fInode, fOldSize, fNewSize); 119 119 } 120 120 -
src/add-ons/kernel/file_systems/bfs/Journal.cpp
diff --git a/src/add-ons/kernel/file_systems/bfs/Journal.cpp b/src/add-ons/kernel/file_systems/bfs/Journal.cpp index 33b91bbd67..9a4b9247a1 100644
a b public: 110 110 virtual void AddDump(TraceOutput& out) 111 111 { 112 112 #ifdef BFS_DEBUGGER_COMMANDS 113 out.Print("bfs:j:%s entry %p id % ld, start %lu, length %lu, log %s "114 "% lu\n", fStarted ? "Started" : "Written", fEntry,113 out.Print("bfs:j:%s entry %p id %d, start %u, length %u, log %s " 114 "%u\n", fStarted ? "Started" : "Written", fEntry, 115 115 fTransactionID, fStart, fLength, 116 116 fStarted ? "end" : "start", fLogPosition); 117 117 #else -
src/add-ons/kernel/network/stack/net_buffer.cpp
diff --git a/src/add-ons/kernel/network/stack/net_buffer.cpp b/src/add-ons/kernel/network/stack/net_buffer.cpp index cc4ae07bbe..ed841c558a 100644
a b public: 301 301 302 302 virtual void AddDump(TraceOutput& out) 303 303 { 304 out.Print("net buffer split: buffer: %p, offset: % lu "304 out.Print("net buffer split: buffer: %p, offset: %u " 305 305 "-> %p", fBuffer, fOffset, fNewBuffer); 306 306 } 307 307 … … public: 351 351 virtual void AddDump(TraceOutput& out) 352 352 { 353 353 out.Print("net buffer append cloned: buffer: %p, from: %p, " 354 "offset: % lu, size: %lu", fBuffer, fSource, fOffset, fSize);354 "offset: %u, size: %lu", fBuffer, fSource, fOffset, fSize); 355 355 } 356 356 357 357 private: … … public: 459 459 460 460 virtual void AddDump(TraceOutput& out) 461 461 { 462 out.Print("net buffer read: buffer: %p, offset: % lu, size: %lu, "462 out.Print("net buffer read: buffer: %p, offset: %u, size: %lu, " 463 463 "data: %p", fBuffer, fOffset, fSize, fData); 464 464 } 465 465 … … public: 484 484 485 485 virtual void AddDump(TraceOutput& out) 486 486 { 487 out.Print("net buffer write: buffer: %p, offset: % lu, size: %lu, "487 out.Print("net buffer write: buffer: %p, offset: %u, size: %lu, " 488 488 "data: %p", fBuffer, fOffset, fSize, fData); 489 489 } 490 490 -
src/kits/app/Message.cpp
diff --git a/src/kits/app/Message.cpp b/src/kits/app/Message.cpp index 7ce543f3c3..f4e7ebf8e0 100644
a b BMessage::_SendMessage(port_id port, team_id portOwner, int32 token, 2228 2228 header->flags |= MESSAGE_FLAG_WAS_DELIVERED; 2229 2229 2230 2230 if (direct == NULL) { 2231 KTRACE("BMessage send remote: team: % ld, port: %ld, token: %ld, "2231 KTRACE("BMessage send remote: team: %d, port: %d, token: %d, " 2232 2232 "message: '%c%c%c%c'", portOwner, port, token, 2233 2233 char(what >> 24), char(what >> 16), char(what >> 8), (char)what); 2234 2234 … … BMessage::_SendMessage(port_id port, team_id portOwner, int32 token, 2249 2249 // target looper. Thus we don't want to do any ops that depend on 2250 2250 // members of this after the enqueue. 2251 2251 if (direct != NULL) { 2252 KTRACE("BMessage send direct: port: % ld, token: %ld, "2252 KTRACE("BMessage send direct: port: %d, token: %d, " 2253 2253 "message: '%c%c%c%c'", port, token, 2254 2254 char(what >> 24), char(what >> 16), char(what >> 8), (char)what); 2255 2255 -
src/system/kernel/arch/x86/arch_vm.cpp
diff --git a/src/system/kernel/arch/x86/arch_vm.cpp b/src/system/kernel/arch/x86/arch_vm.cpp index f238de2936..99925cf371 100644
a b 41 41 #endif 42 42 43 43 // 0: disabled, 1: some, 2: more 44 #define TRACE_MTRR_ARCH_VM 144 #define TRACE_MTRR_ARCH_VM 2 45 45 46 46 #if TRACE_MTRR_ARCH_VM >= 1 47 47 # define TRACE_MTRR(x...) dprintf(x) -
src/system/kernel/events/wait_for_objects.cpp
diff --git a/src/system/kernel/events/wait_for_objects.cpp b/src/system/kernel/events/wait_for_objects.cpp index 40bce55008..f875367871 100644
a b class SelectTraceEntry : public AbstractTraceEntry { 118 118 } 119 119 } 120 120 121 void AddDump(TraceOutput& out, const char* name) 121 //void AddDump(TraceOutput& out, const char* name) 122 void AddDump(TraceOutput& out) 122 123 { 123 out.Print(name);124 //out.Print(name); 124 125 125 126 _PrintSet(out, "read", fReadSet); 126 127 _PrintSet(out, ", write", fWriteSet); … … class SelectBegin : public SelectTraceEntry { 171 172 172 173 virtual void AddDump(TraceOutput& out) 173 174 { 174 SelectTraceEntry::AddDump(out, "select begin: "); 175 //SelectTraceEntry::AddDump(out, "select begin: "); 176 SelectTraceEntry::AddDump(out); 175 177 out.Print(", timeout: %" B_PRIdBIGTIME, fTimeout); 176 178 } 177 179 … … class SelectDone : public SelectTraceEntry { 195 197 virtual void AddDump(TraceOutput& out) 196 198 { 197 199 if (fStatus == B_OK) 198 SelectTraceEntry::AddDump(out, "select done: "); 200 //SelectTraceEntry::AddDump(out, "select done: "); 201 SelectTraceEntry::AddDump(out); 199 202 else 200 203 out.Print("select done: error: %#" B_PRIx32, fStatus); 201 204 } -
src/system/kernel/fs/vfs.cpp
diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index fd338094a8..5e2a50834c 100644
a b protected: 617 617 sizeof(generic_io_vec) * count, false); 618 618 } 619 619 620 void AddDump(TraceOutput& out, const char* mode) 620 //void AddDump(TraceOutput& out, const char* mode) 621 void AddDump(TraceOutput& out) 621 622 { 622 out.Print("vfs pages io %5s:vnode: %p (%" B_PRId32 ", %" B_PRId64 "), "623 out.Print("vfs pages io vnode: %p (%" B_PRId32 ", %" B_PRId64 "), " 623 624 "cookie: %p, pos: %" B_PRIdOFF ", size: %" B_PRIu64 ", vecs: {", 624 mode,fVnode, fMountID, fNodeID, fCookie, fPos,625 fVnode, fMountID, fNodeID, fCookie, fPos, 625 626 (uint64)fBytesRequested); 627 //out.Print("vfs pages io %5s: vnode: %p (%" B_PRId32 ", %" B_PRId64 "), " 628 // "cookie: %p, pos: %" B_PRIdOFF ", size: %" B_PRIu64 ", vecs: {", 629 // mode, fVnode, fMountID, fNodeID, fCookie, fPos, 630 // (uint64)fBytesRequested); 626 631 627 632 if (fVecs != NULL) { 628 633 for (uint32 i = 0; i < fCount; i++) { … … public: 668 673 669 674 virtual void AddDump(TraceOutput& out) 670 675 { 671 PagesIOTraceEntry::AddDump(out, "read"); 676 //PagesIOTraceEntry::AddDump(out, "read"); 677 PagesIOTraceEntry::AddDump(out); 672 678 } 673 679 }; 674 680 … … public: 688 694 689 695 virtual void AddDump(TraceOutput& out) 690 696 { 691 PagesIOTraceEntry::AddDump(out, "write"); 697 //PagesIOTraceEntry::AddDump(out, "write"); 698 PagesIOTraceEntry::AddDump(out); 692 699 } 693 700 }; 694 701 -
src/system/kernel/port.cpp
diff --git a/src/system/kernel/port.cpp b/src/system/kernel/port.cpp index cacc36a330..b262e2c0aa 100644
a b public: 261 261 262 262 virtual void AddDump(TraceOutput& out) 263 263 { 264 out.Print("port % ld created, name \"%s\", owner %ld, capacity %ld",264 out.Print("port %d created, name \"%s\", owner %d, capacity %d", 265 265 fID, fName, fOwner, fCapacity); 266 266 } 267 267 … … public: 284 284 285 285 virtual void AddDump(TraceOutput& out) 286 286 { 287 out.Print("port % ld deleted", fID);287 out.Print("port %d deleted", fID); 288 288 } 289 289 290 290 private: … … public: 319 319 320 320 virtual void AddDump(TraceOutput& out) 321 321 { 322 out.Print("port % ld read, read %ld, write %ld, code %lx: %ld",322 out.Print("port %d read, read %d, write %d, code %x: %ld", 323 323 fID, fReadCount, fWriteCount, fCode, fResult); 324 324 } 325 325 … … public: 349 349 350 350 virtual void AddDump(TraceOutput& out) 351 351 { 352 out.Print("port % ld write, read %ld, write %ld, code %lx, size %ld: %ld",352 out.Print("port %d write, read %d, write %d, code %x, size %ld: %ld", 353 353 fID, fReadCount, fWriteCount, fCode, fBufferSize, fResult); 354 354 } 355 355 … … public: 390 390 391 391 virtual void AddDump(TraceOutput& out) 392 392 { 393 out.Print("port % ld info, read %ld, write %ld, code %lx: %ld",393 out.Print("port %d info, read %d, write %d, code %x: %ld", 394 394 fID, fReadCount, fWriteCount, fCode, fResult); 395 395 } 396 396 … … public: 417 417 418 418 virtual void AddDump(TraceOutput& out) 419 419 { 420 out.Print("port % ld owner change from %ld to %ld: %s", fID, fOldOwner,420 out.Print("port %d owner change from %d to %d: %s", fID, fOldOwner, 421 421 fNewOwner, strerror(fStatus)); 422 422 } 423 423 -
src/system/kernel/vm/VMAnonymousCache.cpp
diff --git a/src/system/kernel/vm/VMAnonymousCache.cpp b/src/system/kernel/vm/VMAnonymousCache.cpp index 6f94fcfc9f..d347841a24 100644
a b public: 189 189 190 190 virtual void AddDump(TraceOutput& out) 191 191 { 192 out.Print("swap read: cache %p, page index: %lu <- swap slot: % lu",192 out.Print("swap read: cache %p, page index: %lu <- swap slot: %u", 193 193 fCache, fPageIndex, fSwapSlotIndex); 194 194 } 195 195 … … public: 213 213 214 214 virtual void AddDump(TraceOutput& out) 215 215 { 216 out.Print("swap write: cache %p, page index: %lu -> swap slot: % lu",216 out.Print("swap write: cache %p, page index: %lu -> swap slot: %u", 217 217 fCache, fPageIndex, fSwapSlotIndex); 218 218 } 219 219 -
src/system/kernel/vm/VMCache.cpp
diff --git a/src/system/kernel/vm/VMCache.cpp b/src/system/kernel/vm/VMCache.cpp index 1e8a27b9d9..841e88a328 100644
a b class Rebase : public VMCacheTraceEntry { 203 203 204 204 virtual void AddDump(TraceOutput& out) 205 205 { 206 out.Print("vm cache rebase: cache: %p, base: %l ld -> %lld", fCache,206 out.Print("vm cache rebase: cache: %p, base: %ld -> %ld", fCache, 207 207 fOldBase, fBase); 208 208 } 209 209 -
src/system/kernel/vm/vm.cpp
diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index bf86415edd..c5cb45edb5 100644
a b public: 344 344 out.Print("page fault error: no area"); 345 345 break; 346 346 case PAGE_FAULT_ERROR_KERNEL_ONLY: 347 out.Print("page fault error: area: % ld, kernel only", fArea);347 out.Print("page fault error: area: %d, kernel only", fArea); 348 348 break; 349 349 case PAGE_FAULT_ERROR_WRITE_PROTECTED: 350 out.Print("page fault error: area: % ld, write protected",350 out.Print("page fault error: area: %d, write protected", 351 351 fArea); 352 352 break; 353 353 case PAGE_FAULT_ERROR_READ_PROTECTED: 354 out.Print("page fault error: area: % ld, read protected", fArea);354 out.Print("page fault error: area: %d, read protected", fArea); 355 355 break; 356 356 case PAGE_FAULT_ERROR_EXECUTE_PROTECTED: 357 out.Print("page fault error: area: % ld, execute protected",357 out.Print("page fault error: area: %d, execute protected", 358 358 fArea); 359 359 break; 360 360 case PAGE_FAULT_ERROR_KERNEL_BAD_USER_MEMORY: … … public: 364 364 out.Print("page fault error: no address space"); 365 365 break; 366 366 default: 367 out.Print("page fault error: area: % ld, error: %s", fArea,367 out.Print("page fault error: area: %d, error: %s", fArea, 368 368 strerror(fError)); 369 369 break; 370 370 } … … public: 391 391 392 392 virtual void AddDump(TraceOutput& out) 393 393 { 394 out.Print("page fault done: area: % ld, top cache: %p, cache: %p, "394 out.Print("page fault done: area: %d, top cache: %p, cache: %p, " 395 395 "page: %p", fArea, fTopCache, fCache, fPage); 396 396 } 397 397 -
src/system/kernel/vm/vm_page.cpp
diff --git a/src/system/kernel/vm/vm_page.cpp b/src/system/kernel/vm/vm_page.cpp index 880b204bdc..c999cb052a 100644
a b class ActivatePage : public AbstractTraceEntry { 433 433 public: 434 434 ActivatePage(vm_page* page) 435 435 : 436 fCache(page-> cache),436 fCache(page->Cache()), 437 437 fPage(page) 438 438 { 439 439 Initialized(); … … class ActivatePage : public AbstractTraceEntry { 445 445 } 446 446 447 447 private: 448 VMCache* 448 VMCache* fCache; 449 449 vm_page* fPage; 450 450 }; 451 451 … … class DeactivatePage : public AbstractTraceEntry { 454 454 public: 455 455 DeactivatePage(vm_page* page) 456 456 : 457 fCache(page-> cache),457 fCache(page->Cache()), 458 458 fPage(page) 459 459 { 460 460 Initialized(); … … class DeactivatePage : public AbstractTraceEntry { 466 466 } 467 467 468 468 private: 469 VMCache* 469 VMCache* fCache; 470 470 vm_page* fPage; 471 471 }; 472 472 … … class FreedPageSwap : public AbstractTraceEntry { 475 475 public: 476 476 FreedPageSwap(vm_page* page) 477 477 : 478 fCache(page-> cache),478 fCache(page->Cache()), 479 479 fPage(page) 480 480 { 481 481 Initialized(); … … class FreedPageSwap : public AbstractTraceEntry { 487 487 } 488 488 489 489 private: 490 VMCache* 490 VMCache* fCache; 491 491 vm_page* fPage; 492 492 }; 493 493 … … class WritePage : public AbstractTraceEntry { 520 520 } 521 521 522 522 private: 523 VMCache* fCache;523 const VMCache* fCache; 524 524 vm_page* fPage; 525 525 }; 526 526