On Wed, 4 Mar 2009, Alexej Sokolov wrote:

how can I get the size and pointer of some allocated uma zone ? For example: zone_pack

Could you tell us a bit more about the context in which you want to do this? Normally kernel modules acquire pointers to globally visible zones via a symbol dependency resolved by the kernel linker (zone_pack is a globally visible symbol in the kernel). Our general userspace monitoring tools, such as vmstat -z, don't display the UMA zone pointers, and a pointer to the zone is not exported by the sysctls it depends on, currently, but if you run kgdb on kernel.symbols you should be able to print out the address of the global zone_pack directly.

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to