summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/amd64-fbsd.c
Commit message (Collapse)AuthorAgeFilesLines
* - Make truss thread-aware.zont2012-09-161-72/+80
| | | | | Approved by: kib (mentor) MFC after: 2 weeks
* - Style(9) cleanup.zont2012-09-021-200/+200
| | | | Approved by: kib (mentor)
* Fix typos in comments, no functional changes.bcr2011-05-191-1/+1
| | | | | | Found by: codespell Reviewed by: alfred MFC after: 1 week
* s/sytem/system in comments, no functional changes.bcr2010-10-131-1/+1
| | | | Reviewed by: alfred@
* Fix copyright spelling.imp2010-03-101-1/+1
| | | | | PR: 139825 Submitted by: Ruslan Mahmatkhanov
* Correct off-by-one issue in truss(1) which happens when system call numberdelphij2009-05-281-1/+1
| | | | | | | | is nsyscalls. PR: bin/134916 Submitted by: Steven Hartland <steven hartland multiplay co uk> MFC after: 2 weeks
* Reduce diff against my local version: replace malloc+memset() cases to calloc().delphij2009-05-151-2/+1
|
* Add -c option to summarize number of calls, errors, and system time.dds2009-05-121-1/+2
| | | | Reviewed by: alfred
* MFp4: Bugfixes for truss(1):delphij2007-06-261-9/+8
| | | | | | | | | | | - 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)
* Make use of ptrace(2) instead of procfs in truss(1), eliminatingdelphij2007-04-101-32/+17
| | | | | | | | yet another need of an available /proc/ mount. Tested with: make universe Submitted by: howardsu Reviewed by: alfred
* - Fix warning when compiling with -DDEBUGpav2006-05-151-1/+1
| | | | Approved by: alfred
* - Fix crash when hitting unknown syscall. Copied from i386-fbsd.cpav2006-05-151-1/+2
| | | | Approved by: alfred
* Add a -s flag for the same functionality as strace. Introduce a Namebrian2006-01-021-2/+2
| | | | | | | | | | | | | | | | 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
* Support readlink(2) better. Readlink does not nul terminate thealfred2004-07-171-2/+2
| | | | | | | | 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.
* Fix unterminated RCSID.bms2004-06-131-1/+1
| | | | Submitted by: Liam J. Foy
* A first stab at truss support for amd64, basically cogged from i386.dwmalone2004-06-121-0/+345
It seems to work in my limited tests.
OpenPOWER on IntegriCloud