From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 12:00:08 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE04216A4CE for ; Tue, 8 Feb 2005 12:00:08 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8242B43D31 for ; Tue, 8 Feb 2005 11:59:54 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j18BxYGf000336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Feb 2005 03:59:34 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j18BxTbO000334 for freebsd-questions@freebsd.org; Tue, 8 Feb 2005 03:59:29 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Tue, 8 Feb 2005 03:59:28 -0800 From: "Loren M. Lang" To: FreeBSD Mailing list Message-ID: <20050208115928.GE8619@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: ktrace as a replacement for strace X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 12:00:09 -0000 I'm looking for a replacement for the strace program I used to use on linux; freebsd has a port of strace, but it just hangs everytime I use it. It looks like the bsd version of strace would be ktrace/kdump. I was able to get these to print a trace of the program I ran, but it doesn't do all the nice substatuting that strace was able to do. Mainly, I just want the first argument of open to look like a string instead of a 32 bit pointer that I can't read. I'm trying to figure out what files this program is trying to read so I can edit it's configuration file. -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C