Date: 06/06/2006 The IOS 0.7.6 (Release Candidate 2) includes support for the new system call void IOS_GetUsage(u32 usage); usage is a flag got by OR'ing zero or more of the following: IOS_USAGE_THREADS, IOS_USAGE_HEAPS, IOS_USAGE_RESOURCES, IOS_USAGE_TIMERS, IOS_USAGE_IOBUFS, IOS_USAGE_QUEUES (defined in iostypes.h) If IOS_USAGE_XXX is set, the call prints the current usage information for that resource. You can also make the idle thread print similar information. For example, if all your threads have crashed/deadlocked and you want to see the state of the system: 1) In Chameleon debugger, stop the CPU. 2) Set the following memory address: 0xXXXX_XXXX (where 0xXXXX_XXXX is the location of the global variable __getUsage in ios.elf or ios_real.elf) to the usage flag for the resource that you want information to be displayed. - To find the global variable __getUsage, do $ /opt/crosstool/bin/arm-elf-nm.exe ios.elf | grep __getUsage - For example, write 0x00000001 to __getUsage address if you want to display information about all the threads running in the system. Writing 0x0000_002F will display information about all system resources (including threads, timers, message queues, heaps, etc.) 3) Start the CPU. The idle thread prints information according to the value you have set for __getUsage. It then sets the variable back to 0. You can repeat steps 1 - 3 as many times you need. For example, first set it to IOS_USAGE_THREADS and look at the state of the threads. You can then stop the CPU again and set it to IOS_USAGE_HEAPS and look at the state of heaps and so on.