From owner-freebsd-hackers Fri Jul 3 05:19:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA20178 for freebsd-hackers-outgoing; Fri, 3 Jul 1998 05:19:57 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA20173 for ; Fri, 3 Jul 1998 05:19:56 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: from gilberto.physik.RWTH-Aachen.DE (gilberto.physik.rwth-aachen.de [137.226.30.2]) by freefall.freebsd.org (8.8.8/8.8.5) with ESMTP id FAA18317 for ; Fri, 3 Jul 1998 05:18:29 -0700 (PDT) Received: (from kuku@localhost) by gilberto.physik.RWTH-Aachen.DE (8.8.8/8.8.7) id OAA20957; Fri, 3 Jul 1998 14:19:50 +0200 (MEST) (envelope-from kuku) Message-ID: <19980703141950.02992@gil.physik.rwth-aachen.de> Date: Fri, 3 Jul 1998 14:19:50 +0200 From: Christoph Kukulies To: marc@bowtie.nl Cc: Christoph Kukulies , freebsd-hackers@freefall.cdrom.com Subject: Re: trace/KTRACE References: <199807030924.LAA20365@gilberto.physik.RWTH-Aachen.DE> <199807031209.OAA24029@bowtie.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199807031209.OAA24029@bowtie.nl>; from Marc van Kempen on Fri, Jul 03, 1998 at 02:09:52PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jul 03, 1998 at 02:09:52PM +0200, Marc van Kempen wrote: > > I would like to find out where an application 'hangs' for > > some overly long time (possibly a network/socket call or something) > > > > Recently I grabbed out 'trace-1.6' for a HP-UX machine which is > > supposed to be based on the SUN kernel trace interface. > > > > The problem using the kernel option KTRACE would be > > that I cannot watch the application as it performs, instead I can > > only trace 'a posteriori'. > > > > Would the be a way to support this utility and the kernel trace interface > > under FreeBSD? > > > > Or are there any other ways (other than profiling, which is also an a > > posteriori method) to 'watch' what an app does? > > > Can't you use gdb and attach to the running process? > > gdb 'progname' 'pid' And then? How would I see what the program is doing? ^C-ing is not what I wish. I believe the mentioned 'truss' seems to do what I want. > > Marc. > > ---------------------------------------------------- > Marc van Kempen BowTie Technology > Email: marc@bowtie.nl WWW & Databases > tel. +31 40 2 43 20 65 > fax. +31 40 2 44 21 86 http://www.bowtie.nl > ---------------------------------------------------- > > -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message