Re: truss ????

Matthias Urlichs (smurf@work.smurf.noris.de)
19 May 1997 22:46:47 +0200


Felix Schroeter <felix@mamba.pond.sub.org> writes:
>
> strace is the answer.
>
> But the 4.4 BSD equivalent is ktrace, which instructs the kernel itself
> to write out a binary file ktrace.out, which can then be analyzed with
> kdump.
>
BSD's ktrace isn't equivalent. It only logs function parameters and can't
peek into structures. (Tracing a stat() call, for instance, with ktrace
will show the file's name because name lookups are logged, but it won't
show how big the file is.)

-- 
My handwriting looks as if a swarm of ants, escaping from an ink
bottle, had walked over a sheet of paper without wiping their legs.
	-- Sydney Smith (1771-1845)
-- 
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail: urlichs@noris.de
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="http://info.noris.de/~smurf/finger">here</A>.    42