From owner-freebsd-current@FreeBSD.ORG Mon Feb 18 11:05:25 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71FC016A418 for ; Mon, 18 Feb 2008 11:05:25 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.freebsd.org (Postfix) with ESMTP id 05C2E13C45A for ; Mon, 18 Feb 2008 11:05:24 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m1IB5LG0006822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Feb 2008 22:05:22 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m1IB5LNA066179; Mon, 18 Feb 2008 22:05:21 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m1IB5L6Z066178; Mon, 18 Feb 2008 22:05:21 +1100 (EST) (envelope-from peter) Date: Mon, 18 Feb 2008 22:05:21 +1100 From: Peter Jeremy To: "Daniel O'Connor" Message-ID: <20080218110521.GQ64299@server.vk2pj.dyndns.org> References: <200802122009.m1CK94Y8026959@repoman.freebsd.org> <200802181004.21379.doconnor@gsoft.com.au> <20080218040625.GA8141@kobe.laptop> <200802181513.42681.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OxDG9cJJSSQMUzGF" Content-Disposition: inline In-Reply-To: <200802181513.42681.doconnor@gsoft.com.au> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-current@freebsd.org Subject: Re: [src] cvs commit: src/include unistd.h src/lib/libc/sys readlink.2 src/sys/compat/freebsd32 syscalls.master src/sys/kern syscalls.master vfs_syscalls.c src/sys/sys syscallsubr.h X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 11:05:25 -0000 --OxDG9cJJSSQMUzGF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 18, 2008 at 03:13:35PM +1030, Daniel O'Connor wrote: >I didn't realise that the file descriptor used to write tracing data out= =20 >was 'owned' by the process being traced, I always thought ktrace did. Unlike truss/ptrace type tools, ktrace just sets a flag in the process that tells the kernel to generate ktrace records. This is more obvious when you use the 'ktrace -p PID' form. On Mon, 18 Feb 2008, Giorgos Keramidas wrote: >> It is probably easy to add an -F flag to ktrace/kdump which would >> inhibit the check for a `regular' file, so you could then write: >> >> ( ktrace -aF -f /dev/stdout ls ) | \ >> kdump -F -f /dev/stdin I don't think stdin/stdout is practical here but supporting named pipes sounds like it would be useful. >I guess it couldn't be moved to ktrace without rearchitecting how=20 >ktracing works so the ktrace process sticks around writing stuff out to=20 >disk. And from what I've seen of the innards of ktrace, the re-architecting would be quite significant. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --OxDG9cJJSSQMUzGF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHuWZx/opHv/APuIcRAtkWAJ9YYSjclbypFcSnd7KRk8ARBNQJkACdFS2y sYkxCEqNMRw9i4XDwtXfka4= =iLxu -----END PGP SIGNATURE----- --OxDG9cJJSSQMUzGF--