Is there a way I can use the lldb user defined commands, which I can load from a KDK, to determine how much memory my kext has consumed? Is there a way to figure out what size blocks they are? Sort of. Keep in mind that your KEXT is simply a loadable library running inside the component, not an independant process/component. Just like in a user space process, there are a variety of mechanisms in place to associate memory allocations to components, but the information you get depends entirely on exactly what you're doing and why. In terms of commands, the kernel debugging command set has 400+ separate commands, many of which are specific to memory. You can see the full command list and a summary of each with the lldb command kgmhelp and each command accepts -h for more specific info. Taking zprint (one of the common starting points for looking at memory issues) as an example: (lldb) kgmhelp ... zprint - Routine to print a summary listing of all the kernel zones ... (lldb) zprint -h zprint: Routine to print a s
Topic:
Developer Tools & Services
SubTopic:
General
Tags: