IBM AIX Continuous Availability Features - IBM Redbooks
IBM AIX Continuous Availability Features - IBM Redbooks
IBM AIX Continuous Availability Features - IBM Redbooks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3.9.7 Heap registration for individual debug control<br />
Kernel programmers can register the heap they created using heap_create() under the<br />
alloc.xmdbg component by using the following command:<br />
errctrl -c alloc.xmdbg skhp_reg=<br />
Where is the address of heap and needs to be found from KDB. In Example 3-49 on<br />
page 136, my_heap is an individual heap and is valid for registration under alloc.xmdbg. To find<br />
its address in kernel space, execute dd my_heap in KDB.<br />
After heap is registered under alloc.xmdbg, it should be visible under its component<br />
hierarchy. Execute following command to see it:<br />
errctrl -q -c alloc.xmdbg -r<br />
The new child component represents the heap “my_heap” and can be controlled individually<br />
by using pass-through commands. For further information about this topic, refer to 3.9.4,<br />
“XMDBG tunables affected by error check level” on page 131, and to3.9.5, “XMDBG tunables<br />
not affected by error check level” on page 134.<br />
Note that persistence (the –P flag of the errctrl command) is not supported with this<br />
mechanism because this new subcomponent will not exist at the next system boot.<br />
Chapter 3. <strong>AIX</strong> advanced continuous availability tools and features 137