From owner-soc-status@FreeBSD.ORG Mon Jul 6 17:28:17 2009 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6316C1065670; Mon, 6 Jul 2009 17:28:17 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by mx1.freebsd.org (Postfix) with ESMTP id 8AE858FC0C; Mon, 6 Jul 2009 17:28:16 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: by mail-ew0-f213.google.com with SMTP id 9so4382626ewy.43 for ; Mon, 06 Jul 2009 10:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=qHPj53MEoRl9W9Zbadp+tsHXTxBYsFdsJrFq3YBeUAQ=; b=E70PzS8TkEPGP90eFRLbaB3ZuSkB+jsgpFT1Js30ZhfXHH/wdy2lr0VltadaveNOOl 5jIuamDOefC4+Ghw8Ml7Sy89eByn4JmeTQOHLYh2CsO2Ft8sbfacbZH3GBGXJOZL12VI C50qFFL88Xlb16edK3jJ4tJQymXE1+qPyEfSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:x-enigmail-version:content-type :content-transfer-encoding; b=eaQ5Vv0AZnfJD4YDgrnYh9EeaCCHP+EWLtrkbA93ZybnbRR87+z77LO0aKx9GsK/ao LJ1KVmkNxTBkvmbMcbiC2VAnzGMJTiIOmTbJ7XB8mIXtq778ZS2Rzp5IqEbmhkAfJH/x 6SE3XV8edqiBNdOvIwRo782KEdyj5eIvpFYxs= Received: by 10.216.36.82 with SMTP id v60mr1299328wea.120.1246901296184; Mon, 06 Jul 2009 10:28:16 -0700 (PDT) Received: from beehive.inf.elte.hu (beehive.inf.elte.hu [157.181.166.90]) by mx.google.com with ESMTPS id g9sm17058092gvc.10.2009.07.06.10.28.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Jul 2009 10:28:15 -0700 (PDT) Sender: =?UTF-8?B?UMOBTEkgR8OhYm9yIErDoW5vcw==?= Message-ID: <4A5235B8.1060804@FreeBSD.org> Date: Mon, 06 Jul 2009 19:34:48 +0200 From: Gabor PALI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.19 (X11/20090128) MIME-Version: 1.0 To: soc-status@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Oleksandr Tymoshenko , Robert Watson Subject: libstat status 5 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2009 17:28:17 -0000 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