From owner-soc-status@FreeBSD.ORG Mon Jul 7 12:01:11 2014 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BEEC2B04 for ; Mon, 7 Jul 2014 12:01:11 +0000 (UTC) Received: from mx1.mail.bg (mx1.mail.bg [IPv6:2001:67c:16b8:1::2:17]) by mx1.freebsd.org (Postfix) with ESMTP id 757782CA0 for ; Mon, 7 Jul 2014 12:01:10 +0000 (UTC) Received: from [10.1.1.159] (unknown [95.87.254.225]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.mail.bg (Postfix) with ESMTPSA id 3B37D600034D for ; Mon, 7 Jul 2014 15:01:07 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mail.bg; s=default; t=1404734467; bh=RiwXT91sI9gQO21G8jhFRn3M3bHVx3CHnbyHkra/gdE=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date: Content-Transfer-Encoding:Message-Id:References:To; b=djlimuaR4IvJj78HW9xEu19QRrOAk7vWIi7nrWgKpd+Kwrtvolq7+QeZ8v8vdDKgP 6bFGR7a2/VJGRGuj6L1+0J0YQZcKhC6gWAmvbkoycX6nD1JPCYqWIaXoy3nnrA73FE wkEvmFypyuzelvxC5R5WZivWnN+vgbYYZaZUBxSg= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: [Machine readable output from userland utilities] report From: Zaro Korchev In-Reply-To: Date: Mon, 7 Jul 2014 15:01:05 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <19220D3B-101C-45A4-AE41-068E033D5F92@mail.bg> References: <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> <2F779B73-EAC5-49B4-B3E8-7A81109EC166@mail.bg> <5AF0FF20-E41B-4D46-A427-D84D9E2CD047@mail.bg> To: soc-status@freebsd.org X-Mailer: Apple Mail (2.1283) X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.18 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, 07 Jul 2014 12:01:11 -0000 Hi everybody This week I spent most of my time on adding libsol support to procstat. # procstat -f 697 [ { "pid": 697, "cmd": "tcsh", "fd": "text", "type": "v", "vtype": "r", "flags": "r-------", "name": "/bin/tcsh" }, { "pid": 697, "cmd": "tcsh", "fd": "ctty", "type": "v", "vtype": "c", "flags": "rw------", "name": "/dev/ttyv2" }, { "pid": 697, "cmd": "tcsh", "fd": "cwd", "type": "v", "vtype": "d", "flags": "r-------", "name": "/usr/home/zaro/zkorchev/freebsd_head/usr.bin/stat" }, { "pid": 697, "cmd": "tcsh", "fd": "root", "type": "v", "vtype": "d", "flags": "r-------", "name": "/" }, { "pid": 697, "cmd": "tcsh", "fd": 15, "type": "v", "vtype": "c", "flags": "rw------", "ref": 9, "offset": 412893, "name": "/dev/ttyv2" }, { "pid": 697, "cmd": "tcsh", "fd": 16, "type": "v", "vtype": "c", "flags": "rw------", "ref": 9, "offset": 412893, "name": "/dev/ttyv2" }, { "pid": 697, "cmd": "tcsh", "fd": 17, "type": "v", "vtype": "c", "flags": "rw------", "ref": 9, "offset": 412893, "name": "/dev/ttyv2" }, { "pid": 697, "cmd": "tcsh", "fd": 18, "type": "v", "vtype": "c", "flags": "rw------", "ref": 9, "offset": 412893, "name": "/dev/ttyv2" }, { "pid": 697, "cmd": "tcsh", "fd": 19, "type": "v", "vtype": "c", "flags": "rw------", "ref": 9, "offset": 412893, "name": "/dev/ttyv2" } ] I added a new function to libsol that generates a map key from an = integer. I'm currently not using it anywhere but I think it will become = handy in the future. I also wanted to make stat work with libsol, but after reading the = source, I realized this will not be possible because stat uses format = strings to operate. Zaro=