[...]
> 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
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
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
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