*BSD News Article 86138


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news-xfer.netaxs.com!ddsw1!news.mcs.net!news.abs.net!cs.umd.edu!not-for-mail
From: fwmiller@cs.umd.edu (Frank W. Miller)
Newsgroups: comp.unix.bsd.misc
Subject: How to output kernel generated data?
Date: 3 Jan 1997 11:15:40 -0500
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 24
Message-ID: <5ajbbc$brm@yangtze.cs.umd.edu>
NNTP-Posting-Host: yangtze.cs.umd.edu
NNTP-Posting-User: fwmiller
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:1873


Hello again,

I've been generating all sorts of nice timing data using the timestamp
counter.  I've been trying to get the output to go to a file.  
A simple redirection, something like this, would be nice:

yangtze% <program that generates data in the kernel>  >  <data file>

Currently, I'm using uprintf() in the sections of the kernel I have
instrumented to send the data to the controlling terminal.
The trouble is, I'd like to be able to redirect this to a file so I
can reduce the data later.  uprintf() doesnt seem to work for this and
printf() sends stuff only to the console.  This seems like it should
be simple.

Thanks in advance!

Later,
FM
-- 
Frank W. Miller                           Department of Computer Science
fwmiller@cs.umd.edu                 University of Maryland, College Park
http://www.cs.umd.edu/~fwmiller             College Park, Maryland 20742