summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/truss.1
Commit message (Collapse)AuthorAgeFilesLines
* Add support for displaying thread IDs to truss(1).jhb2016-02-231-3/+9
| | | | | | | | | | | | | | | - Consolidate duplicate code for printing the metadata at the start of each line into a shared function. - Add an -H option which will log the thread ID of the relevant thread for each event. While here, remove some extraneous calls to clock_gettime() in print_syscall() and print_syscall_ret(). The caller of print_syscall_ret() always updates the current thread's "after" time before it is called. Reviewed by: kib MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D5363
* Let -c imply -S (hide signal output).bdrewery2015-10-091-2/+2
| | | | | | | | | Without this, the signals are shown seemingly randomly in the output before the final summary is shown. This is especially noticeable when there is not much output from the application being traced. Discussed with: jhb Relnotes: yes
* truss: Add support for utrace(2).bdrewery2015-10-061-2/+3
| | | | | | | | | | | | | | This uses the kdump(1) utrace support code directly until a common library is created. This allows malloc(3) tracing with MALLOC_CONF=utrace:true and rtld tracing with LD_UTRACE=1. Unknown utrace(2) data is just printed as hex. PR: 43819 [inspired by] Reviewed by: jhb MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D3819
* Add -c option to summarize number of calls, errors, and system time.dds2009-05-121-3/+9
| | | | Reviewed by: alfred
* Attaching to the init process returns EINVAL,trhodes2009-01-231-2/+2
| | | | | | | | so give an example that is more likely to work. Stolen from the ktrace(1) manual page. PR: 128222 Submitted by: Mateusz Guzik <mjguzik@gmail.com>
* Remove duplicate ' 2' manpage section number.keramida2007-05-211-1/+1
| | | | | Submitted by: Rui Paulo MFC after: 3 days
* Make use of ptrace(2) instead of procfs in truss(1), eliminatingdelphij2007-04-101-10/+2
| | | | | | | | yet another need of an available /proc/ mount. Tested with: make universe Submitted by: howardsu Reviewed by: alfred
* Add missing markup bits.ru2006-12-111-3/+2
|
* Markup fixes.ru2006-09-291-2/+2
|
* Add a -s flag for the same functionality as strace. Introduce a Namebrian2006-01-021-0/+12
| | | | | | | | | | | | | | | | 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
* Fix all the spelling mistakes I could find in the man pages for wordskeramida2005-07-311-1/+1
| | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
* Improve markup and language.dd2004-09-071-1/+3
|
* Update doc dates.alfred2004-09-031-1/+1
| | | | Pointed out by: ru
* xref and give a hint as to what procctl can be used for.alfred2004-09-031-1/+7
|
* mdoc(7) police: markup polishing.ru2002-11-261-4/+10
| | | | Approved by: re
* Add options to print the argument and environment string parameters tomdodd2002-08-041-2/+6
| | | | | | | | | execve(). This could be done in a more general manner but it still wouldn't be very pretty. MFC after: 3 weeks
* Add options to print absolute and relative timestamps.mdodd2002-08-041-2/+8
| | | | | PR: bin/25587 (in part) MFC after: 3 weeks
* Allow tracking fork()ed children.mdodd2002-08-041-2/+5
| | | | | PR: bin/25587 (in part) MFC after: 3 weeks
* Use `The .Nm utility'charnier2002-04-201-2/+3
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-191-0/+1
|
* mdoc(7) police: use canonical form of .Dd macro.ru2000-12-111-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Fxi various man pages to stop abusing the .Bx macro to generatempp2000-01-231-2/+2
| | | | | | | the string "FreeBSD". Use the .Fx macro instead. Also did some minor re-wording/formatting to work around a deficiency with the .Fx macro when it comes to puncuation characters other than periods and commas.
* Add $FreeBSD$ lines to man pages that are missing them to make itmpp1999-08-281-0/+2
| | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net>
* Sort Xrefs. Use err(3). Remove uneeded #include.charnier1998-01-051-15/+25
| | | | | | 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.
* s/ps/truss/peter1997-12-071-1/+1
|
* Truss program. Requires procfs.sef1997-12-061-0/+57
OpenPOWER on IntegriCloud