Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 1995 11:50:38 -0700
From:      kelly@fsl.noaa.gov (Sean Kelly)
To:        patj@sierra.valleynet.com
Cc:        questions@freebsd.org
Subject:   Re: Got one for you..
Message-ID:  <9511141850.AA04091@emu.fsl.noaa.gov>
In-Reply-To: <Pine.BSD/.3.91.951114101030.517A-100000@sierra.valleynet.com> (message from Pat Jensen - Network Administrator on Tue, 14 Nov 1995 10:12:34 -0800 (PST))

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Pat" == Pat Jensen <- Network Administrator <patj@sierra.valleynet.com>> writes:

    Pat> Is there a tool that you can run with a program to show what
    Pat> system calls it is calling?  I can remember they distributed
    Pat> such a program with Linsux.  Like ftrace or something
    Pat> funky.. Any ideas?

Yep, try ktrace.  You'll need the KTRACE option in your kernel:

	options KTRACE

Compile and install the kernel, then reboot.

Then, run ktrace on an executable

	ktrace ls

You'll get a ktrace.out file you can read with kdump.

	kdump ktrace.out

See ktrace(1) and kdump(1) for plenty of more information.

-- 
Sean Kelly
NOAA Forecast Systems Laboratory, Boulder Colorado USA

Two babies were born on the same day at the same hospital.  They lay
there and looked at each other.  Their families came and took them
away.  Eighty years later, by a bizarre coincidence, they lay in the
same hospital, on their deathbeds, next to each other.  One of them
looked at the other and said, "So.  What did you think?"
-- Steven Wright



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9511141850.AA04091>