Date: Wed, 8 Feb 2006 07:51:55 -0800 From: David Kirchner <dpk@dpk.net> To: Jens Trzaska <jt@barfoos.de> Cc: freebsd-stable@freebsd.org Subject: Re: truss and /sbin/init Message-ID: <35c231bf0602080751p6df719f0sf61cee25d3404a8@mail.gmail.com> In-Reply-To: <20060208152546.GA78035@anastasia.lan.barfoos.de> References: <20060208152546.GA78035@anastasia.lan.barfoos.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/8/06, Jens Trzaska <jt@barfoos.de> wrote: > Hi, > > I just tried to use truss on the running /sbin/init process. > > root@beast:~# truss -p 1 > truss: cannot open /proc/1/mem: No such file or directory > Exit 8 > > As you can see without any luck. But why is the memory information > missing in procfs here? /sbin/init is a more or less regular userland > process. Looking at truss(1) it even shows this example: The memory is apparently locked in core, according to the L flag for 'ps'. This should probably be documented in the truss man page to avoid confusion. FWIW, you can run ktrace on init, although I don't really recommend running it with the '-d' or '-i' flags unless you have a lot of space for the output, heh.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35c231bf0602080751p6df719f0sf61cee25d3404a8>