Changeset 438 for trunk/kernel/kern/dqdt.h
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/dqdt.h
r437 r438 93 93 94 94 /**************************************************************************************** 95 * This recursive function traverses the DQDT quad-tree from bottom to root, to propagate 96 * the change in the threads number and allocated pages number in a leaf cluster, 97 * toward the upper levels of the DQDT quad-tree. 98 * It should be called periodically by each instance of the kernel. 99 ***************************************************************************************/ 100 void dqdt_global_update(); 101 102 /**************************************************************************************** 103 * This local function updates both the total number of threads, 104 * in the level 0 DQDT node, and the variation of the number of threads 105 * for future propagation to the DQDT upper levels. 95 * This local function updates the total number of threads in level 0 DQDT node, 96 * and propagates the variation to the DQDT upper levels. 106 97 * It should be called on each thread creation or destruction. 107 98 **************************************************************************************** 108 99 * @ increment : increment (can be positive or negative) 109 100 ***************************************************************************************/ 110 void dqdt_ local_update_threads( int32_t increment );101 void dqdt_update_threads( int32_t increment ); 111 102 112 103 /**************************************************************************************** 113 * This local function updates both the total number of allocated pages, 114 * in the level 0 DQDT node, and the variation of the number of pages 115 * for future propagation to the DQDT upper levels. 116 * It should be called on each memory allocation or release. 104 * This local function updates the total number of pages in level 0 DQDT node, 105 * and propagates the variation to the DQDT upper levels. 106 * It should be called on each physical memory page allocation or release. 117 107 **************************************************************************************** 118 108 * @ increment : increment (can be positive or negative) 119 109 ***************************************************************************************/ 120 void dqdt_ local_update_pages( int32_t increment );110 void dqdt_update_pages( int32_t increment ); 121 111 122 112 /**************************************************************************************** … … 139 129 140 130 /**************************************************************************************** 141 * This recursive function displays usage information for all DQDT nodes in the subtree 142 * defined by the node argument. It traverses the quadtree from root to bottom. 143 **************************************************************************************** 144 * @ node_xp : extended pointer on a DQDT node. 131 * This function displays on kernel TXT0 the DQDT state for all nodes in the quad-tree. 132 * It traverses the quadtree from root to bottom, and can be called by a thread 133 * running in any cluster 145 134 ***************************************************************************************/ 146 void dqdt_global_print( xptr_t node_xp ); 147 148 /**************************************************************************************** 149 * This function displays summary usage information in a given DQDT local node. 150 **************************************************************************************** 151 * @ node : local pointer on a DQDT node. 152 ***************************************************************************************/ 153 void dqdt_local_print( dqdt_node_t * node ); 135 void dqdt_display(); 154 136 155 137
Note: See TracChangeset
for help on using the changeset viewer.