concept prove patch for ktrace output to all file types

From: Howard Su <howard0su_at_gmail.com>
Date: Thu, 28 Jun 2007 00:34:26 +0800
This is a concept prove patch for ktrace. In order to make ktrace write to
stdout, /dev/xxx, fifo file, pipe, I changed ktrace syscall to accepting a
file handler instead of a file name.

I just get a workable kernel patch. And i make as small as possible changes
to userland code. Now you can do something like:
#mkfifo foo
in session A: #kdump -f foo
in session B: #ktrace -f foo ls

Then, you can see a real time output like truss did.

Before moving forward (hacking userland), i want to get some feedback if my
changes in kernel part is the right direction to do. Appreciate your time.

PS: The patch can be clearly apply to today's current.

-- 
-Howard

Received on Wed Jun 27 2007 - 14:34:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC