Re: Accounting with pid ?

Juha Virtanen (jiivee@iki.fi)
Tue, 14 May 1996 10:26:54 +0300


Andreas Joppich writes:

:>How about printing the pid of the executing process
:>into the accounting file, if accounting is enabled ?
:>Under VMS this is done and sometimes it helps a lot
:>to trace down some things.

This requires only adding two lines to kernel. If you want to
test it out, get the diffs from
<ftp://iguana.hut.fi/pub/linux/Kernel/process_accounting/experimental/>.
I made the kernel diffs against pre2.0.3, but they should apply
to any kernel having process accounting in it.

The other diffs in that directory are for dumping accounting file
to screen.

(Latest process accounting utilities package is acct_1.3.73.tar.gz
available from URL
<ftp://iguana.hut.fi/pub/linux/Kernel/process_accounting/acct_1.3.73.tar.gz>
or
<http://iguana.hut.fi/ftp/pub/linux/Kernel/process_accounting/acct_1.3.73.tar.gz>.)

Juha

-- 
jiivee@iki.fi                                         http://www.iki.fi/jiivee/