Revision tags: release/7.2.0_cvs, release/7.2.0 |
|
#
f0bcd5c3 |
| 13-Apr-2009 |
Xin LI <delphij@FreeBSD.org> |
Correct a bug where pr_data should have been assigned.
|
Revision tags: release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
#
ef29ac7f |
| 27-Jun-2007 |
Xin LI <delphij@FreeBSD.org> |
MFp4: Bugfixes for truss(1):
- Fix logic handling execve(). We will not be able to obtain information otherwise. - truss coredump [1]. - truss does not work against itself [2].
PR: bin/5897
MFp4: Bugfixes for truss(1):
- Fix logic handling execve(). We will not be able to obtain information otherwise. - truss coredump [1]. - truss does not work against itself [2].
PR: bin/58970 [1], bin/45193 [2] Submitted by: Howard Su Approved by: re (kensmith)
show more ...
|
#
5d2d083c |
| 10-Apr-2007 |
Xin LI <delphij@FreeBSD.org> |
Make use of ptrace(2) instead of procfs in truss(1), eliminating yet another need of an available /proc/ mount.
Tested with: make universe Submitted by: howardsu Reviewed by: alfred
|
Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0 |
|
#
081e5c48 |
| 15-May-2006 |
Pav Lucistnik <pav@FreeBSD.org> |
- Add decoding of kse_release, kevent, sigprocmask, unmount, socket, getrusage, rename, __getcwd, shutdown, getrlimit, setrlimit, _umtx_lock, _umtx_unlock, pathconf, truncate, ftruncate, kill
-
- Add decoding of kse_release, kevent, sigprocmask, unmount, socket, getrusage, rename, __getcwd, shutdown, getrlimit, setrlimit, _umtx_lock, _umtx_unlock, pathconf, truncate, ftruncate, kill
- Decode more arguments of open, mprot, *stat, and fcntl.
- Convert all constant-macro and bitfield decoding to lookup tables; much cleaner than previous code.
- Print the timestamp of process exit and signal reception when -d or -D are in use
- Try six times with 1/2 second delay to debug the child
PR: bin/52190 (updated) Submitted by: Dan Nelson <dnelson@allantgroup.com> Approved by: alfred
show more ...
|
Revision tags: release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0 |
|
#
72aa911a |
| 27-Mar-2005 |
Alfred Perlstein <alfred@FreeBSD.org> |
When doing the initial open of the proc via procfs, complain if we are unable to open the /proc/pid/mem file. Otherwise doing a truss on a nonexistant pid makes us return success even though no such
When doing the initial open of the proc via procfs, complain if we are unable to open the /proc/pid/mem file. Otherwise doing a truss on a nonexistant pid makes us return success even though no such process exists.
show more ...
|
#
5321ae86 |
| 27-Mar-2005 |
Alfred Perlstein <alfred@FreeBSD.org> |
I've been working on this somewhat so I'm moving the parts I'm touching to be as style(9) compliant as I can.
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0 |
|
#
1bc99f11 |
| 07-Jan-2004 |
David Malone <dwmalone@FreeBSD.org> |
Move declarations of Procfd to a header file.
|
Revision tags: release/4.9.0_cvs, release/4.9.0 |
|
#
b956c13c |
| 07-Sep-2003 |
Philippe Charnier <charnier@FreeBSD.org> |
Add FBSDID. Do not \n terminate warnx() argument. fprint() -> warnx().
|
Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2 |
|
#
37169f94 |
| 06-Aug-2002 |
Matthew N. Dodd <mdodd@FreeBSD.org> |
- Use time.h not sys/time.h. - Fix printf format errors.
Submitted by: bde
|
#
c69d8442 |
| 04-Aug-2002 |
Bruce Evans <bde@FreeBSD.org> |
Include <sys/time.h> for the declaration of struct timeval. Do not depend on namespace pollution in <signal.h>. (truss shouldn't be using timevals anyway, since it was implemented long after timeva
Include <sys/time.h> for the declaration of struct timeval. Do not depend on namespace pollution in <signal.h>. (truss shouldn't be using timevals anyway, since it was implemented long after timevals were obsoleted by timespecs.)
show more ...
|
#
c03bfcc8 |
| 04-Aug-2002 |
Matthew N. Dodd <mdodd@FreeBSD.org> |
Allow tracking fork()ed children.
PR: bin/25587 (in part) MFC after: 3 weeks
|
#
ec0bed25 |
| 04-Aug-2002 |
Matthew N. Dodd <mdodd@FreeBSD.org> |
Parameterize globals.
PR: bin/25587 (in part) MFC after: 3 weeks
|
Revision tags: release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
#
1be5d704 |
| 12-Dec-2001 |
Mark Murray <markm@FreeBSD.org> |
Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage. Use __FBSDID().
|
#
6303ee4e |
| 22-Oct-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Back out part of previous commit: remove #include <sys/proc.h>.
|
#
580e0a2b |
| 22-Oct-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
#include <sys/proc.h> where needed (for the stop event definitions) and reorder includes everywhere to conform to style(9).
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs |
|
#
89361835 |
| 10-Jan-2000 |
Sean Eric Fagan <sef@FreeBSD.org> |
Handle the case where we truss an SUGID program -- in particular, we need to wake up any processes waiting via PIOCWAIT on process exit, and truss needs to be more aware that a process may actually d
Handle the case where we truss an SUGID program -- in particular, we need to wake up any processes waiting via PIOCWAIT on process exit, and truss needs to be more aware that a process may actually disappear while it's waiting.
Reviewed by: Paul Saab <ps@yahoo-inc.com>
show more ...
|
Revision tags: release/3.4.0_cvs, release/3.3.0_cvs |
|
#
c3aac50f |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8 |
|
#
1fd98d7d |
| 13-Oct-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or execvp() in the child branch of a vfork(). Changed to use fork() instead.
Some of these (mv, find, apply, xargs) might benefit gre
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or execvp() in the child branch of a vfork(). Changed to use fork() instead.
Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly.
PR: Loosely related to bin/8252 Approved by: jkh and bde
show more ...
|
Revision tags: release/2.2.7, release/2.2.6 |
|
#
3cf51049 |
| 05-Jan-1998 |
Philippe Charnier <charnier@FreeBSD.org> |
Sort Xrefs. Use err(3). Remove uneeded #include. Correct usage: one of {-p pid, command} is required. Open output file when command line is fully analyzed: incorrect `truss -o f' command does not cre
Sort Xrefs. Use err(3). Remove uneeded #include. Correct usage: one of {-p pid, command} is required. Open output file when command line is fully analyzed: incorrect `truss -o f' command does not create an empty file anymore.
show more ...
|
#
09d64da3 |
| 20-Dec-1997 |
Sean Eric Fagan <sef@FreeBSD.org> |
Add some copyright and license terms, at Jordan's request. Note that syscall.h just refers to another file for the copyright notice.
|
#
d7b7dcba |
| 13-Dec-1997 |
Sean Eric Fagan <sef@FreeBSD.org> |
Change the ioctls for procfs around a bit; in particular, whever possible, change from
ioctl(fd, PIOC<foo>, &i);
to
ioctl(fd, PIOC<foo>, i);
This is going from the _IOW to _IO ioctl macro. The
Change the ioctls for procfs around a bit; in particular, whever possible, change from
ioctl(fd, PIOC<foo>, &i);
to
ioctl(fd, PIOC<foo>, i);
This is going from the _IOW to _IO ioctl macro. The kernel, procctl, and truss must be in synch for it all to work (not doing so will get errors about inappropriate ioctl's, fortunately). Hopefully I didn't forget anything :).
show more ...
|
#
20fa828f |
| 07-Dec-1997 |
Sean Eric Fagan <sef@FreeBSD.org> |
Use the new PF_LINGER flag -- when this is set in a process' proc structure, said process will not have its event mask cleared (and be restarted) on the last close of a procfs/mem file for that pid.
Use the new PF_LINGER flag -- when this is set in a process' proc structure, said process will not have its event mask cleared (and be restarted) on the last close of a procfs/mem file for that pid. This reduces the chance that a truss-monitored process will be left hanging with these bits set and nobody looking for it.
This is the least-tested change of all of these, I'm afraid.
show more ...
|
#
e09a8fd1 |
| 06-Dec-1997 |
Peter Wemm <peter@FreeBSD.org> |
err(3) already includes strerror(errno) and a trailing \n
|
#
fe41f305 |
| 06-Dec-1997 |
Sean Eric Fagan <sef@FreeBSD.org> |
Set the close-on-exec flag in the child; otherwise, it eats up a file descriptor that it shouldn't.
|
#
bbeaf6c0 |
| 06-Dec-1997 |
Sean Eric Fagan <sef@FreeBSD.org> |
Truss program. Requires procfs.
|