From owner-freebsd-hackers Fri Jul 3 13:48:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16153 for freebsd-hackers-outgoing; Fri, 3 Jul 1998 13:48:32 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16139 for ; Fri, 3 Jul 1998 13:48:25 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id WAA22439; Fri, 3 Jul 1998 22:45:08 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by semyam.dinoco.de (8.8.8/8.8.8) with ESMTP id WAA02287; Fri, 3 Jul 1998 22:42:51 +0200 (CEST) (envelope-from seggers@semyam.dinoco.de) Message-Id: <199807032042.WAA02287@semyam.dinoco.de> To: Christoph Kukulies cc: freebsd-hackers@FreeBSD.ORG, seggers@semyam.dinoco.de Subject: Re: trace/KTRACE In-reply-to: Your message of "Fri, 03 Jul 1998 11:24:53 +0200." <199807030924.LAA20365@gilberto.physik.RWTH-Aachen.DE> Date: Fri, 03 Jul 1998 22:42:50 +0200 From: Stefan Eggers 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) > 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'. So you'd like to have the ktrace output right when the call gets done instead of seeing the whole log after the show ended? How about using option -l of kdump then? It works in 2.2-stable - just tried it with xcalc. I saw the system calls when they were done instead of having to go through the log afterwards. If you want to avoid extremly large files with the ktrace output you might redirect it to /dev/stdout, pipe that into kdump and tell kdump to read from /dev/stdin. I didn't test it and it might fail but is worth a try. Stefan. -- Stefan Eggers Lu4 yao2 zhi1 ma3 li4, Max-Slevogt-Str. 1 ri4 jiu3 jian4 ren2 xin1. 51109 Koeln Federal Republic of Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message