Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Mar 2009 14:37:09 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Alexej Sokolov <bsd.quest@googlemail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: uma_zone
Message-ID:  <alpine.BSF.2.00.0903071431050.1340@fledge.watson.org>
In-Reply-To: <671bb5fc0903040829m7c7ab79ay612868bb4260bd21@mail.gmail.com>
References:  <671bb5fc0903040829m7c7ab79ay612868bb4260bd21@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0903071431050.1340>