Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2010 23:40:19 +0100
From:      =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= <fernando.apesteguia@gmail.com>
To:        Alexander Leidinger <Alexander@leidinger.net>
Cc:        emulation@freebsd.org
Subject:   Re: MFC (RELENG_8) testers for a linprocfs patch?
Message-ID:  <AANLkTikvomGdaFCuqDJsYgLit46vSvS_3h98J3GCfidC@mail.gmail.com>
In-Reply-To: <20101115151256.13513f6rcjsjgkqo@webmail.leidinger.net>
References:  <20101115151256.13513f6rcjsjgkqo@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 15, 2010 at 3:12 PM, Alexander Leidinger
<Alexander@leidinger.net> wrote:
> Hi,
>
> can someone please test the attached patch on a recent RELENG_8 system? I
> got a request to MFC it, but I do not have a RELENG_8 system around to te=
st
> it (I haven't even compile-tested it).
>
> The changes are for
> =A0/compat/linux/proc/uptime
> =A0/compat/linux/proc/<PID>/stat
> =A0/compat/linux/proc/<PID>/procstatus
>
> I would like to just to know if it compiles fine and does not panic the
> system when you access those files with cat.
>
> Bye,
> Alexander.
>
> --
> BOFH excuse #139:
>
> UBNC (user brain not connected)

Hi Alexander,

I tried your patch on 8.1-RELEASE amd64. Compilation was clean.

Before the patch:

$ cat /compat/linux/proc/uptime
423.99 775.86

$ cat /compat/linux/proc/$$/stat
1528 (bash) S 1526 1528 1528 0 1565 0 1066 0 1 0 19 19 27 21 128 0 0 0
1614649358 41844736 706 17584 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 3

$ cat /compat/linux/proc/1528/status
Name:	bash
State:	S (sleeping)
Pid:	1528
PPid:	1526
Uid:	1001 1001 1001 1001
Gid:	1001 1001 1001 1001
Groups:	1001
VmSize:	   10216 kB
VmLck:	       0 kB
VmRss:	    2824 kB
VmData:	     420 kB
VmStk:	     128 kB
VmExe:	     608 kB
VmLib:	    9056 kB
SigPnd:	00000000
SigBlk:	00000000
SigIgn:	1072c004
SigCgt:	6b883efb
CapInh:	0000000000000000
CapPrm:	0000000000000000
CapEff:	0000000000000000


After the patch:

$ cat /compat/linux/proc/uptime
890.48 825.57

$ cat /compat/linux/proc/$$/stat
1528 (bash) S 1526 1528 1528 123 1636 0 1613 0 1 0 2 3 18 6 128 0 0 0
8358 41844736 706 17584 4194304 5861376 0 0 0 0 0 0 0 0 0 0 0 1 0 3

$ cat /compat/linux/proc/$$/status
Name:	bash
State:	S (sleeping)
Pid:	1528
PPid:	1526
Uid:	1001 1001 1001 1001
Gid:	1001 1001 1001 1001
Groups:	1001
VmSize:	   10216 kB
VmLck:	       0 kB
VmRSS:	    2824 kB
VmData:	     420 kB
VmStk:	     128 kB
VmExe:	     608 kB
VmLib:	    9056 kB
SigPnd:	00000000
SigBlk:	00000000
SigIgn:	1072c004
SigCgt:	6b883efb
CapInh:	0000000000000000
CapPrm:	0000000000000000
CapEff:	0000000000000000

HTH
>
> http://www.Leidinger.net =A0 =A0Alexander @ Leidinger.net: PGP ID =3D B00=
63FE7
> http://www.FreeBSD.org =A0 =A0 =A0 netchild @ FreeBSD.org =A0: PGP ID =3D=
 72077137
>
> _______________________________________________
> freebsd-emulation@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.o=
rg"
>
>



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