Date: Wed, 3 Dec 1997 19:04:22 -0800 (PST) From: Sean Eric Fagan <sef@kithrup.com> To: current@freebsd.org Subject: Heads up -- change to proc structure coming soon Message-ID: <199712040304.TAA18506@kithrup.com>
next in thread | raw e-mail | index | archive | help
Sometime soon (maybe this week, more likely this weekend), I'll be checking in the procfs-related changes I sent out last week; currently, this is to support the version of truss I've been working on. This involves a change to the proc structure, so LKM's, gdb, and ps will need to be rebuilt. It's not finished -- but I've been making changes only to truss for the past couple of weeks, and no kernel or procfs changes at all, so I think the kernel code is ready. I'll also be checking in procctl and an early version of truss (and quite possibly immediately followed by the later version of truss ;)). (This isn't to say the kernel code is finalized; I'm not sure about a couple of the things I'm doing, and there are some features I want to add.) Here is an example, for the curious, of what I've got truss doing right now -- first for a BSD "Hello, World" program, and then for the linux "ldd" binary. garth 1% obj/truss /tmp/a.out > /dev/null syscall fstat(1,0xefbfd7f8) returns 0 (0x0) syscall readlink("/etc/malloc.conf",0xefbfd7e4,63) errno 2 'No such file or directory' syscall mmap(0x0,4096,0x3,0x1002,-1) returns 134254592 (0x8009000) syscall break(0xc000) returns 0 (0x0) syscall break(0x1c000) returns 0 (0x0) syscall ioctl(0x1,0x402c7413,0xefbfd834) returns 0 (0x0) syscall write(1,0xc000,13) returns 13 (0xd) syscall exit(0x0) process exit, rval = 0 garth 2% obj/truss /usr/compat/linux/usr/bin/ldd > /dev/null syscall linux_personality(0x0) returns 0 (0x0) syscall linux_brk(0x0) returns 134299648 (0x8014000) syscall linux_brk(0x8017000) returns 134311936 (0x8017000) syscall linux_brk(0x8018000) returns 134316032 (0x8018000) syscall linux_open("/usr/share/locale/C/LC_MESSAGES",0,016234672457) errno -2 'No such file or directory' syscall linux_brk(0x8019000) returns 134320128 (0x8019000) syscall linux_newstat("/etc/locale/C/libc.cat",0xefbfd170) errno -2 'No such file or directory' syscall linux_newstat("/usr/lib/locale/C/libc.cat",0xefbfd170) errno -2 'No such file or directory' syscall linux_newstat("/usr/lib/locale/libc/C",0xefbfd170) errno -2 'No such file or directory' syscall linux_newstat("/usr/share/locale/C/libc.cat",0xefbfd170) errno -2 'No such file or directory' syscall linux_newstat("/usr/local/share/locale/C/libc.cat",0xefbfd170) errno -2 'No such file or directory' syscall linux_newfstat(1,0xefbfc7e0) returns 0 (0x0) syscall linux_brk(0x8029000) returns 134385664 (0x8029000) syscall linux_ioctl(0x1,0x5401,0xefbfc7a4) returns 0 (0x0) syscall write(1,0x8019000,54) returns 54 (0x36) syscall exit(0x0) process exit, rval = 0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712040304.TAA18506>