#
272461 |
|
02-Oct-2014 |
gjb |
Copy stable/10@r272459 to releng/10.1 as part of the 10.1-RELEASE process.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
240562 |
|
16-Sep-2012 |
zont |
- Make truss thread-aware.
Approved by: kib (mentor) MFC after: 2 weeks
|
#
240005 |
|
02-Sep-2012 |
zont |
- Style(9) cleanup.
Approved by: kib (mentor)
|
#
222103 |
|
19-May-2011 |
bcr |
Fix typos in comments, no functional changes.
Found by: codespell Reviewed by: alfred MFC after: 1 week
|
#
213799 |
|
13-Oct-2010 |
bcr |
s/sytem/system in comments, no functional changes.
Reviewed by: alfred@
|
#
204977 |
|
10-Mar-2010 |
imp |
Fix copyright spelling.
PR: 139825 Submitted by: Ruslan Mahmatkhanov
|
#
192943 |
|
27-May-2009 |
delphij |
Correct off-by-one issue in truss(1) which happens when system call number is nsyscalls.
PR: bin/134916 Submitted by: Steven Hartland <steven hartland multiplay co uk> MFC after: 2 weeks
|
#
192153 |
|
15-May-2009 |
delphij |
Reduce diff against my local version: replace malloc+memset() cases to calloc().
|
#
192025 |
|
12-May-2009 |
dds |
Add -c option to summarize number of calls, errors, and system time.
Reviewed by: alfred
|
#
171055 |
|
26-Jun-2007 |
delphij |
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)
|
#
168569 |
|
10-Apr-2007 |
delphij |
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
|
#
158626 |
|
15-May-2006 |
pav |
- Fix crash when hitting unknown syscall. Copied from i386-fbsd.c
Approved by: alfred
|
#
153963 |
|
02-Jan-2006 |
brian |
Add a -s flag for the same functionality as strace. Introduce a Name type which is a String type that has no -s limitations applied to it. Change most Strings in the code to Names and add a few extra syscalls, namely munmap, read, rename and symlink. This was enough to facilitate following file descriptor allocations in the code more easily and getting a hint at what's being read/written from/to files. More syscalls should really be added.
While here, fix an off-by-one bug in the buffer truncation code and add a fflush so that truss's output reflects the syscall that the program is stuck in.
Sponsored by: Sophos/Activestate MFC after: 2 weeks
|
#
132308 |
|
17-Jul-2004 |
alfred |
Support readlink(2) better. Readlink does not nul terminate the result buffer, so we need to format it ourselves. The problem is that the length is stored as the return value from readlink, so we need to pass the return value from our syscall into print_arg.
Motivated by: truss garbage on my screen from reading /etc/malloc.conf.
|
#
124217 |
|
07-Jan-2004 |
dwmalone |
Move declarations of Procfd to a header file.
|
#
122348 |
|
09-Nov-2003 |
marcel |
Port truss(1) to 64-bit architectures: o Syscall return values do not fit in int on 64-bit architectures. Change the type of retval in <arch>_syscall_exit() to long and change the prototype of said function to return a long as well. o Change the prototype of print_syscall_ret() to take a long for the return address and change the format string accordingly. o Replace the code sequence tmp = malloc(X); sprintf(tmp, format, ...); with X by definition too small on 64-bit platforms by asprintf(&tmp, format, ...);
With these changes the output makes sense again, although it does mess up the tabulation on ia64. Go widescreen...
Not tested on: alpha, sparc64.
|
#
106713 |
|
09-Nov-2002 |
dwmalone |
Various cleanups of truss: 1) Missing include. 2) Constness. 3) ANSIfication. 4) Avoid some shadowing. 5) Add/clarify some error messages. 6) Some int functions were using return without a value. 7) Mark some parameters as unused. 8) Cast a value we know is non-negative to a size_t before comparing.
|
#
101423 |
|
06-Aug-2002 |
mdodd |
- Use time.h not sys/time.h. - Fix printf format errors.
Submitted by: bde
|
#
101374 |
|
05-Aug-2002 |
mdodd |
Diff reduction.
|
#
101320 |
|
04-Aug-2002 |
jake |
Ported to sparc64.
|