uma_zone
Robert Watson
rwatson at FreeBSD.org
Sat Mar 7 06:37:10 PST 2009
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
More information about the freebsd-hackers
mailing list