On Mon, Nov 15, 2010 at 3:12 PM, Alexander Leidinger
<[email protected]> 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 test
> it (I haven't even compile-tested it).
>
> The changes are for
>  /compat/linux/proc/uptime
>  /compat/linux/proc/<PID>/stat
>  /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    Alexander @ Leidinger.net: PGP ID = B0063FE7
> http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137
>
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> To unsubscribe, send any mail to "[email protected]"
>
>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[email protected]"

Reply via email to