From owner-freebsd-questions Wed Jun 11 07:24:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA25818 for questions-outgoing; Wed, 11 Jun 1997 07:24:13 -0700 (PDT) Received: from siili.inet.fi (mta.inet.fi [192.89.123.191]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA25813 for ; Wed, 11 Jun 1997 07:24:03 -0700 (PDT) Received: from jau.tmt.tele.fi (jau.tmt.tele.fi [194.251.252.34]) by siili.inet.fi (8.8.5/8.8.5/JAU-2.2) with ESMTP id RAA21037 for ; Wed, 11 Jun 1997 17:24:16 +0300 Received: (from jau@localhost) by jau.tmt.tele.fi (8.8.5/8.8.5/JAU-2.2) id RAA24797 for questions@freebsd.org; Wed, 11 Jun 1997 17:23:57 +0300 (EET DST) From: "Jukka A. Ukkonen" Message-Id: <199706111423.RAA24797@jau.tmt.tele.fi> Subject: what about adding fktrace() to parallel ktrace() To: questions@freebsd.org Date: Wed, 11 Jun 1997 17:23:57 +0300 (EET DST) Latin-Date: Miercuri XI Iunie a.d. MCMXCVII Organization: Internet Services R&D / Telecom Finland Phone: +358-2040-4025 (office) / +358-400-606671 (mobile) Content-Conversion: prohibited X-Mailer: ELM [version 2.4 PL25+pgp] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello everybody! Sometimes it would be nice to be able run online process tracing on some processes. Currently this is impossible due to ktrace(1) using ktrace(2) system call and due to how this system call has been implemented. It would be quite simple to make kdump(1) to read a socket or a fifo though. Wouldn't it be reasonable to add also a new system call fktrace() to parallel the current ktrace(2). To this new system call one would pass a file descriptor instead of the file name. Having fktrace() call would allow one to modify ktrace(1) to generate the trace output directly via a socket to kdump(1). This would instantly give us an online tracing capability. In fact with some weird programming applied this would also allow running kdump(1) on a remote machine, which probably is not a very bright idea. ;-) Cheers, // jau ------ / Jukka A. Ukkonen, Internet Services R&D / Telecom Finland Ltd. /__ M.Sc. (sw-eng & cs) (Phone) +358-2040-4025 / Internet: Jukka.Ukkonen@tele.fi (Fax) +358-2040-64724 / Internet: jau@iki.fi (Mobile) +358-400-606671 v Internet: ukkonen@nic.funet.fi (Home&Fax) +358-9-6215280