Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

truss(1) with support for fork(2) and friends

0 views
Skip to first unread message

John-Mark Gurney

unread,
May 26, 2000, 3:00:00 AM5/26/00
to Arun Sharma
Arun Sharma scribbled this message on May 20:
> I just implemented the "-f" flag in truss, to trace across fork(2),
> rfork(2) and vfork(2) (the last one is not tested).

[...]

> I'm guilty of running indent against the source, before I did this work.
> So I can't generate a clean patch yet. But if I get good feedback on this
> work, I'll clean it up and produce a patch that can be commited.

well, has another committer expressed intrest in this work? I was
looking at committing your code, but it's both for an out of date version
of truss, and run though ident... if you could provide the changes
to the -current source (w/o ident) I'd greatly appreciate it..

--
John-Mark Gurney Voice: +1 408 975 9651
Cu Networking "I say all sorts of useless things." -- cmc


To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message

Arun Sharma

unread,
May 26, 2000, 3:00:00 AM5/26/00
to John-Mark Gurney
On Fri, May 26, 2000 at 01:51:48PM -0700, John-Mark Gurney wrote:
> well, has another committer expressed intrest in this work? I was
> looking at committing your code, but it's both for an out of date version
> of truss, and run though ident... if you could provide the changes
> to the -current source (w/o ident) I'd greatly appreciate it..

Sean Eric Fagan did. But he'd like me to go - "single truss many processes
with select" way. I'm not sure if I have the time to implement that
- but yes, I'll work on coming up with a clean patch against -current.

-Arun

John-Mark Gurney

unread,
May 26, 2000, 3:00:00 AM5/26/00
to Arun Sharma
Arun Sharma scribbled this message on May 26:

> On Fri, May 26, 2000 at 01:51:48PM -0700, John-Mark Gurney wrote:
> > well, has another committer expressed intrest in this work? I was
> > looking at committing your code, but it's both for an out of date version
> > of truss, and run though ident... if you could provide the changes
> > to the -current source (w/o ident) I'd greatly appreciate it..
>
> Sean Eric Fagan did. But he'd like me to go - "single truss many processes
> with select" way. I'm not sure if I have the time to implement that
> - but yes, I'll work on coming up with a clean patch against -current.

ok, I'll let sef do the integration, but if it goes for a week or so
w/o it, email me, and I'll work on integrating it...

also, don't use select, use kqueue.. :) much better performance...

--
John-Mark Gurney Voice: +1 408 975 9651
Cu Networking "I say all sorts of useless things." -- cmc

Arun Sharma

unread,
May 27, 2000, 3:00:00 AM5/27/00
to John-Mark Gurney
On Fri, May 26, 2000 at 01:51:48PM -0700, John-Mark Gurney wrote:
> well, has another committer expressed intrest in this work? I was
> looking at committing your code, but it's both for an out of date version
> of truss, and run though ident... if you could provide the changes
> to the -current source (w/o ident) I'd greatly appreciate it..

Ok, the cleaned up diff is at:

http://sharmas.dhs.org/~adsharma/projects/freebsd/truss-diff-current.gz

Things TBD:

1. Move print_syscall to syscall_entry rather than exit.
2. Fix the race - before the child truss can attach to the child process,
the child could be gone. Other OSes are capable of creating a child which
is already stopped, if the parent was being traced.
3. Port the code to alpha
4. Preserve ordering in truss output. Due to stdio, the buffering might
reorder the syscalls.

-Arun

0 new messages