From owner-freebsd-hackers Fri Jul 3 05:08:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA18122 for freebsd-hackers-outgoing; Fri, 3 Jul 1998 05:08:03 -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 FAA18102 for ; Fri, 3 Jul 1998 05:07:57 -0700 (PDT) (envelope-from marc@bowtie.nl) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by freefall.freebsd.org (8.8.8/8.8.5) with ESMTP id FAA18110 for ; Fri, 3 Jul 1998 05:06:36 -0700 (PDT) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.8.8/1.63) with IAEhv.nl; pid 23710 on Fri, 3 Jul 1998 12:07:50 GMT; id MAA23710 efrom: marc@bowtie.nl; eto: UNKNOWN Received: from localhost (localhost [127.0.0.1]) by bowtie.nl (8.8.8/8.8.8) with ESMTP id OAA24029; Fri, 3 Jul 1998 14:09:53 +0200 (CEST) (envelope-from marc@bowtie.nl) Message-Id: <199807031209.OAA24029@bowtie.nl> X-Mailer: exmh version 2.0.2 2/24/98 To: Christoph Kukulies cc: freebsd-hackers@freefall.cdrom.com Subject: Re: trace/KTRACE In-reply-to: kuku's message of Fri, 03 Jul 1998 11:24:53 +0200. <199807030924.LAA20365@gilberto.physik.RWTH-Aachen.DE> Reply-to: marc@bowtie.nl Date: Fri, 03 Jul 1998 14:09:52 +0200 From: Marc van Kempen Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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' 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 ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message