History log of /freebsd-current/usr.bin/truss/truss.1
Revision Date Author Comments
# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 8fb164a6 21-Jul-2017 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make truss(1) cross-reference dtrace(1) and bump .Dd.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL


# 279e48d5 21-Jul-2017 Edward Tomasz Napierala <trasz@FreeBSD.org>

Use more usual formatting for the EXAMPLES section of truss(1).

MFC after: 2 weeks
Sponsored by: DARPA, AFRL


# d70876fd 23-Feb-2016 John Baldwin <jhb@FreeBSD.org>

Add support for displaying thread IDs to truss(1).

- 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


# 7096af2e 09-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Let -c imply -S (hide signal output).

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


# 195aef99 06-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

truss: Add support for utrace(2).

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# ee3b0f6e 12-May-2009 Diomidis Spinellis <dds@FreeBSD.org>

Add -c option to summarize number of calls, errors, and system time.

Reviewed by: alfred


# a88e970c 22-Jan-2009 Tom Rhodes <trhodes@FreeBSD.org>

Attaching to the init process returns EINVAL,
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>


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 42aff2e4 21-May-2007 Giorgos Keramidas <keramida@FreeBSD.org>

Remove duplicate ' 2' manpage section number.

Submitted by: Rui Paulo
MFC after: 3 days


# 5d2d083c 09-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


# 353067fc 11-Dec-2006 Ruslan Ermilov <ru@FreeBSD.org>

Add missing markup bits.


# cb29445a 29-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

Markup fixes.


# 0cf21b4f 02-Jan-2006 Brian Somers <brian@FreeBSD.org>

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


# 6fb9b618 30-Jul-2005 Giorgos Keramidas <keramida@FreeBSD.org>

Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.


# 399f52f8 07-Sep-2004 Dima Dorfman <dd@FreeBSD.org>

Improve markup and language.


# 18858a07 03-Sep-2004 Alfred Perlstein <alfred@FreeBSD.org>

Update doc dates.

Pointed out by: ru


# 4bcd2254 03-Sep-2004 Alfred Perlstein <alfred@FreeBSD.org>

xref and give a hint as to what procctl can be used for.


# 06e482e6 26-Nov-2002 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: markup polishing.

Approved by: re


# 9897b203 03-Aug-2002 Matthew N. Dodd <mdodd@FreeBSD.org>

Add options to print the argument and environment string parameters to
execve().

This could be done in a more general manner but it still wouldn't
be very pretty.

MFC after: 3 weeks


# 0d0bd00e 03-Aug-2002 Matthew N. Dodd <mdodd@FreeBSD.org>

Add options to print absolute and relative timestamps.

PR: bin/25587 (in part)
MFC after: 3 weeks


# c03bfcc8 03-Aug-2002 Matthew N. Dodd <mdodd@FreeBSD.org>

Allow tracking fork()ed children.

PR: bin/25587 (in part)
MFC after: 3 weeks


# e8937ba0 19-Apr-2002 Philippe Charnier <charnier@FreeBSD.org>

Use `The .Nm utility'


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# 62500372 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 9b88faec 19-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

Prepare for mdoc(7)NG.


# d7b336c0 11-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use canonical form of .Dd macro.


# 8fe908ef 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# f3c2973d 22-Jan-2000 Mike Pritchard <mpp@FreeBSD.org>

Fxi various man pages to stop abusing the .Bx macro to generate
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.


# 49364d3c 28-Aug-1999 Mike Pritchard <mpp@FreeBSD.org>

Add $FreeBSD$ lines to man pages that are missing them to make it
easier for translation teams.

PR: docs/13418
Submitted by: Alexey Zelkin <phantom@cris.net>


# 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 create an empty file anymore.


# f8d795fb 07-Dec-1997 Peter Wemm <peter@FreeBSD.org>

s/ps/truss/


# bbeaf6c0 05-Dec-1997 Sean Eric Fagan <sef@FreeBSD.org>

Truss program. Requires procfs.