From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 15:12:12 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 034DE16A4CE for ; Tue, 8 Feb 2005 15:12:12 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C3EE43D49 for ; Tue, 8 Feb 2005 15:12:11 +0000 (GMT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.1/8.13.1) with ESMTP id j18FGRNE077728; Tue, 8 Feb 2005 16:16:27 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.1/8.13.1/Submit) id j18FGRSr077727; Tue, 8 Feb 2005 16:16:27 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Tue, 8 Feb 2005 16:16:27 +0100 From: Ruben de Groot To: "Loren M. Lang" Message-ID: <20050208151627.GB76723@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , "Loren M. Lang" , FreeBSD Mailing list References: <20050208115928.GE8619@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050208115928.GE8619@alzatex.com> User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED, FROM_ENDS_IN_NUMS autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on ei.bzerk.org cc: FreeBSD Mailing list Subject: Re: 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 15:12:12 -0000 On Tue, Feb 08, 2005 at 03:59:28AM -0800, Loren M. Lang typed: > 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 think truss(8) will suit your needs better. Ruben