MFC (RELENG_8) testers for a linprocfs patch?
Oliver Fromme
olli at lurza.secnetix.de
Mon Nov 15 17:10:16 UTC 2010
Alexander Leidinger wrote:
> 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.
I've tested the patch on a RELENG_8 that's a few weeks old.
Seems to work fine (except that you probably meant "status"
instead of "procstatus"):
# cat /usr/compat/linux/proc/uptime
33545.12 32346.33
# cat /usr/compat/linux/proc/$$/stat
2723 (zsh) S 2722 2723 2688 129 39437 0 3559 0 0 0 296 147 71712 7647 128 0 0 0 3151747 21069824 1162 4640 134512640 136077312 0 0 0 0 0 0 0 0 0 0 0 0 0 3
# cat /usr/compat/linux/proc/$$/status
Name: zsh
State: S (sleeping)
Pid: 2723
PPid: 2722
Uid: 0 0 0 0
Gid: 0 0 0 0
Groups: 0 5
VmSize: 5144 kB
VmLck: 0 kB
VmRSS: 4648 kB
VmData: 3488 kB
VmStk: 128 kB
VmExe: 1528 kB
VmLib: 18446744073709551612 kB
SigPnd: 00000000
SigBlk: 00000000
SigIgn: 1072c004
SigCgt: 08082003
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
#
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
$ dd if=/dev/urandom of=test.pl count=1
$ file test.pl
test.pl: perl script text executable
More information about the freebsd-emulation
mailing list