Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2014 15:01:05 +0300
From:      Zaro Korchev <zkorchev@mail.bg>
To:        soc-status@freebsd.org
Subject:   Re: [Machine readable output from userland utilities] report
Message-ID:  <19220D3B-101C-45A4-AE41-068E033D5F92@mail.bg>
In-Reply-To: <CE908FC5-321D-40BA-9756-72904F93AA51@mail.bg>
References:  <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> <2F779B73-EAC5-49B4-B3E8-7A81109EC166@mail.bg> <5AF0FF20-E41B-4D46-A427-D84D9E2CD047@mail.bg> <C9A0231C-553B-4046-9181-F3D8866DB9F6@mail.bg> <CE908FC5-321D-40BA-9756-72904F93AA51@mail.bg>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19220D3B-101C-45A4-AE41-068E033D5F92>