Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 1996 11:57:56 -0400
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        James Raynard <fcurrent@jraynard.demon.co.uk>
Cc:        bde@zeta.org.au, freebsd-current@freebsd.org, j@uriah.heep.sax.de, nate@sri.MT.net
Subject:   Re: ktrace [Was: 2.2-960612-SNAP resolver problems]
Message-ID:  <9606171557.AA01047@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199606170030.AAA10445@jraynard.demon.co.uk>
References:  <199606160211.MAA00203@godzilla.zeta.org.au> <199606170030.AAA10445@jraynard.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 17 Jun 1996 00:30:38 GMT, James Raynard <fcurrent@jraynard.demon.co.uk> said:

> Indeed. Apart from volume of output, is there any particular reason
> why ktrace writes to a file which kdump reads in, as opposed to using
> a pipe? Particularly as the first thing kdump does is 
> freopen(tracefile, "r", stdin)!

1) The ktrace(2) system call takes a filename as its argument, not a
descriptor.

2) The present approach has the advantage of not disturbing the file
descriptor table of the process being debugged, so that heisenbug
effects are less likely to occur.

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9606171557.AA01047>