From owner-freebsd-questions Tue Nov 14 10:50:44 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA02147 for questions-outgoing; Tue, 14 Nov 1995 10:50:44 -0800 Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id KAA02137 for ; Tue, 14 Nov 1995 10:50:40 -0800 Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA14837; Tue, 14 Nov 95 12:50:39 -0600 Received: by emu.fsl.noaa.gov (1.38.193.4/SMI-4.1 (1.38.193.4)) id AA04091; Tue, 14 Nov 1995 11:50:38 -0700 Date: Tue, 14 Nov 1995 11:50:38 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) Message-Id: <9511141850.AA04091@emu.fsl.noaa.gov> To: patj@sierra.valleynet.com Cc: questions@freebsd.org In-Reply-To: (message from Pat Jensen - Network Administrator on Tue, 14 Nov 1995 10:12:34 -0800 (PST)) Subject: Re: Got one for you.. Sender: owner-questions@freebsd.org Precedence: bulk >>>>> "Pat" == Pat Jensen <- Network Administrator > 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