]>
Commit | Line | Data |
---|---|---|
6d2010ae A |
1 | #include <sys/kdebug.h> |
2 | ||
3 | /* | |
4 | * KERNEL_DEBUG related definitions for HFS. | |
5 | * | |
6 | * NOTE: The Class DBG_FSYSTEM = 3, and Subclass DBG_HFS = 8, so these | |
7 | * debug codes are of the form 0x0308nnnn. | |
8 | */ | |
9 | #define HFSDBG_CODE(code) FSDBG_CODE(DBG_HFS, code) | |
10 | ||
11 | enum { | |
12 | HFSDBG_UNMAP_FREE = HFSDBG_CODE(0), /* 0x03080000 */ | |
13 | HFSDBG_UNMAP_ALLOC = HFSDBG_CODE(1), /* 0x03080004 */ | |
14 | HFSDBG_UNMAP_CALLBACK = HFSDBG_CODE(2), /* 0x03080008 */ | |
15 | /* 0x0308000C is unused */ | |
16 | HFSDBG_BLOCK_ALLOCATE = HFSDBG_CODE(4), /* 0x03080010 */ | |
17 | HFSDBG_BLOCK_DEALLOCATE = HFSDBG_CODE(5), /* 0x03080014 */ | |
18 | HFSDBG_READ_BITMAP_BLOCK = HFSDBG_CODE(6), /* 0x03080018 */ | |
19 | HFSDBG_RELEASE_BITMAP_BLOCK = HFSDBG_CODE(7), /* 0x0308001C */ | |
20 | HFSDBG_ALLOC_CONTIG_BITMAP = HFSDBG_CODE(8), /* 0x03080020 */ | |
21 | HFSDBG_ALLOC_ANY_BITMAP = HFSDBG_CODE(9), /* 0x03080024 */ | |
22 | HFSDBG_ALLOC_KNOWN_BITMAP = HFSDBG_CODE(10), /* 0x03080028 */ | |
23 | HFSDBG_MARK_ALLOC_BITMAP = HFSDBG_CODE(11), /* 0x0308002C */ | |
24 | HFSDBG_MARK_FREE_BITMAP = HFSDBG_CODE(12), /* 0x03080030 */ | |
25 | HFSDBG_BLOCK_FIND_CONTIG = HFSDBG_CODE(13), /* 0x03080034 */ | |
26 | HFSDBG_IS_ALLOCATED = HFSDBG_CODE(14), /* 0x03080038 */ | |
27 | /* 0x0308003C is unused */ | |
28 | HFSDBG_RESET_EXTENT_CACHE = HFSDBG_CODE(16), /* 0x03080040 */ | |
29 | HFSDBG_REMOVE_EXTENT_CACHE = HFSDBG_CODE(17), /* 0x03080044 */ | |
30 | HFSDBG_ADD_EXTENT_CACHE = HFSDBG_CODE(18), /* 0x03080048 */ | |
39236c6e A |
31 | HFSDBG_READ_BITMAP_RANGE = HFSDBG_CODE(19), /* 0x0308004C */ |
32 | HFSDBG_RELEASE_SCAN_BITMAP = HFSDBG_CODE(20), /* 0x03080050 */ | |
33 | HFSDBG_SYNCER = HFSDBG_CODE(21), /* 0x03080054 */ | |
34 | HFSDBG_SYNCER_TIMED = HFSDBG_CODE(22), /* 0x03080058 */ | |
6d2010ae A |
35 | }; |
36 | ||
37 | /* | |
38 | Parameters logged by the above | |
39 | EVENT CODE DBG_FUNC_START arg1, arg2, arg3, arg4 ... DBG_FUNC_END arg1, arg2, arg3, arg4 | |
40 | --------------------------- | |
41 | HFSDBG_UNMAP_CALLBACK 0, extentCount, 0, 0 ... 0, 0, 0, 0 | |
42 | HFSDBG_UNMAP_FREE startBlock, blockCount, 0, 0 ... err, 0, 0, 0 | |
43 | HFSDBG_UNMAP_ALLOC startBlock, blockCount, 0, 0 ... err, 0, 0, 0 | |
316670eb A |
44 | HFSDBG_REMOVE_EXTENT_CACHE startBlock, blockCount, vcbFreeExtCnt, 0 ... 0, 0, vcbFreeExtCnt, extentsRemoved |
45 | HFSDBG_ADD_EXTENT_CACHE startBlock, blockCount, vcbFreeExtCnt, 0 ... 0, 0, vcbFreeExtCnt, retval | |
6d2010ae A |
46 | HFSDBG_MARK_ALLOC_BITMAP startBlock, blockCount, 0, 0 ... err, 0, 0, 0 |
47 | HFSDBG_MARK_FREE_BITMAP startBlock, blockCount, valid, 0 ... err, 0, 0, 0 | |
48 | HFSDBG_BLOCK_DEALLOCATE startBlock, blockCount, flags, 0 ... err, 0, 0, 0 | |
49 | HFSDBG_IS_ALLOCATED startBlock, blockCount, stop, 0 ... err, 0, actualBlockCount, 0 | |
50 | HFSDBG_BLOCK_ALLOCATE startBlock, minBlocks, maxBlocks, flags ... err, actualStartBlock, actualBlockCount, 0 | |
51 | HFSDBG_ALLOC_CONTIG_BITMAP startBlock, minBlocks, maxBlocks, useMeta ... err, actualStartBlock, actualBlockCount, 0 | |
52 | HFSDBG_ALLOC_ANY_BITMAP startBlock, endBlock, maxBlocks, useMeta ... err, actualStartBlock, actualBlockCount, 0 | |
53 | HFSDBG_ALLOC_KNOWN_BITMAP 0, 0, maxBlocks, 0 ... err, actualStartBlock, actualBlockCount, 0 | |
54 | HFSDBG_BLOCK_FIND_CONTIG startBlock, endBlock, minBlocks, maxBlocks ... err, actualStartBlock, actualBlockCount, 0 | |
55 | HFSDBG_READ_BITMAP_BLOCK startBlock, 0, 0, 0 ... err, 0, 0, 0 | |
56 | HFSDBG_RELEASE_BITMAP_BLOCK dirty, 0, 0, 0 ... 0, 0, 0, 0 | |
57 | HFSDBG_RESET_EXTENT_CACHE 0, 0, 0, 0 ... 0, 0, 0, 0 | |
39236c6e A |
58 | HFSDBG_READ_BITMAP_RANGE startBlock, iosize, 0, 0 ... err, 0, 0, 0 |
59 | HFSDBG_RELEASE_SCAN_BITMAP 0, 0, 0, 0, ... 0, 0, 0, 0 | |
60 | ||
6d2010ae | 61 | */ |