Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Jul 2009 19:34:48 +0200
From:      Gabor PALI <pgj@FreeBSD.org>
To:        soc-status@freebsd.org
Cc:        Oleksandr Tymoshenko <gonzo@FreeBSD.org>, Robert Watson <rwatson@FreeBSD.org>
Subject:   libstat status 5
Message-ID:  <4A5235B8.1060804@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hello there,

In the last week, I studied the methods that libmemstat(3) uses for
extraction of information from kernel memory images, and refined such
routines of libnetstat, so it is now working for images with the same
word sizes as the running system.  At the moment, there is no support
for different word sizes, however it might be added later on.

Robert Watson suggested me to test libnetstat's functionality between a
64-bit kernel and a 32-bit userland.  I set up a 64-bit system with a
32-bit chrooted userland for this purpose, but it took more time than I
expected due to some unexpected difficulties in the installation. 
However, finally I managed to run a 32-bit modified netstat(1) and my
nettop utility on top of a 64-bit kernel.  After a few small
modifications of the exported streamed pcb list's structure they worked
fine, so it seems the libmemstat(3) model can be adapted well.  Note
that the original netstat(1) code always wants to use kvm, even when
doing live monitoring by sysctl variables, so I also needed to fix that
for the tests.

Cheers,
:g




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A5235B8.1060804>