freebsd-dev/usr.bin
John Baldwin d70876fd7e 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
2016-02-23 19:56:29 +00:00
..
addr2line
alias
apply Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
ar Check archive_entry_new() result. 2015-10-29 19:28:21 +00:00
asa
at
atm
awk META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
banner
basename Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
bc bc(1): Fix memory corruption issues 2015-11-24 04:15:13 +00:00
biff
bluetooth Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
bmake Test directories can build in parallel fine. 2016-02-16 02:13:59 +00:00
brandelf
bsdiff Check for (old|new)size + 1 overflows off_t. 2015-11-03 17:27:24 +00:00
bzip2
bzip2recover
c89
c99
caesar Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
calendar Add myself as ports committer (including calendar) 2016-02-16 10:33:45 +00:00
cap_mkdb Remove O_SYNC from the options passed to dbmopen(). 2016-02-19 08:42:13 +00:00
catman
chat
checknr
chkey
chpass
cksum
clang DIRDEPS_BUILD: Add dependencies somehow missed in r295681. 2016-02-19 00:41:38 +00:00
cmp Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
col Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
colcrt
colldef colldef(1) does not need the libc's internal collate.h header anymore 2015-11-21 10:52:32 +00:00
colrm
column Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
comm Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
compile_et
compress
cpio Don't override LIB*DIR variables from src.libnames.mk. 2015-12-01 22:20:04 +00:00
cpuset
csplit
ctags
ctlstat Bunch of improvements to ctlstat. 2015-09-21 09:37:49 +00:00
cut Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
cxxfilt META MODE: Fix 'make bootstrap-tools'. 2015-11-25 19:44:51 +00:00
dc
dirname Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
dpv Bump copyright 2016-01-27 00:03:43 +00:00
drill META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
dtc Improvements to BSD-licensed DTC. 2015-12-29 16:29:42 +00:00
du
ee
elf2aout
elfcopy DIRDEPS_BUILD: Update dependencies. 2016-02-16 02:14:30 +00:00
elfdump elfdump: handle STT_SPARC_REGISTER 2016-01-25 04:22:01 +00:00
enigma
env
expand
factor Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
false
fetch
file
file2c Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
find
finger Fix printing multibyte printing when performing a networked finger(1) request 2016-01-18 20:47:04 +00:00
fmt
fold
fortune Use print as a function for Python 3 [PEP 3105] 2015-11-19 00:01:52 +00:00
from
fstat
fsync
ftp
gcore
gencat
getconf getconf(1): Fix typo. _POSIX_V6_LP64_OFFBIG -> _POSIX_V6_LPBIG_OFFBIG. 2015-10-19 21:06:30 +00:00
getent
getopt
gprof
grdc Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
grep Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
gzip Update NetBSD RCS IDs to reflect the changes being upstreamed. 2015-10-27 21:26:05 +00:00
head
hesinfo
hexdump Fix a bug that caused nothing to be skipped when skipping exactly the 2016-02-14 14:23:56 +00:00
host
iconv META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
id
ident META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
indent Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
ipcrm Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
ipcs Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
iscsictl mdoc: sort Xr 2016-01-18 20:21:38 +00:00
join Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
jot Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
kdump DIRDEPS_BUILD: Update dependencies. 2016-02-16 02:14:30 +00:00
keylogin
keylogout
killall
ktrace
ktrdump Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
lam
last
lastcomm Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
ldd We don't support a.out executables on RISC-V. 2016-01-24 15:15:57 +00:00
leave
less - Add support for zip to lesspipe.sh 2016-01-15 23:13:01 +00:00
lessecho
lesskey
lex META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
limits Add some basic tests that exercise cputime limits with limits(1) 2015-11-09 01:05:31 +00:00
locale Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
localedef META MODE: Fix 'make the-lot' with recent locale changes 2015-11-25 19:13:28 +00:00
locate Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
lock
lockf
logger
login login.c doesn't really need libutil.h, don't include it. 2015-09-10 22:25:40 +00:00
logins
logname
look Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
lorder
lsvfs
lzmainfo
m4 Import misc.c,v 1.46 from OpenBSD (by espie@) 2016-01-18 22:12:07 +00:00
mail Fix naive use of ftell(3). 2016-02-16 21:39:19 +00:00
makewhatis Fix installation of makewhatis.local(1) since r283777. 2016-02-18 00:26:21 +00:00
man Restore man -t for manpages rendered by mandoc 2015-09-19 16:00:50 +00:00
mandoc Update mandoc to 20160116 2016-01-15 23:28:12 +00:00
mesg
minigzip
ministat Compute the median of the data set as the midpoint between the two middle 2015-11-24 02:30:59 +00:00
mkcsmapper META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
mkcsmapper_static META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
mkdep Replace gcc reference with 'cc' and document the default ${CC}. 2015-10-24 05:16:30 +00:00
mkesdb META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
mkesdb_static
mkfifo
mkimg Add ppcboot FAT type. Needed to create a bootable powerpc image. 2015-12-11 05:39:42 +00:00
mklocale Reintegrate colldef(1) and mklocale(1) 2015-11-20 23:15:05 +00:00
mkstr
mktemp
mkulzma
mkuzip
morse Final step of eliminating the "games" distribution: Merge src/games 2015-10-02 10:08:11 +00:00
msgs
mt Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
nc
ncal Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
netstat Increase max allowed backlog for listen sockets 2016-02-02 05:57:59 +00:00
newgrp
newkey
nfsstat DIRDEPS_BUILD: Update dependencies. 2016-01-07 19:58:23 +00:00
nice
nl
nm
nohup
numactl numactl: fix CPU affinity when modifying an existing process or thread 2016-01-14 01:34:41 +00:00
number Final step of eliminating the "games" distribution: Merge src/games 2015-10-02 10:08:11 +00:00
opieinfo
opiekey
opiepasswd
pagesize
pamtest META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
passwd
paste
patch META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
pathchk
perror
pom Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
pr Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
primes Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
printenv
printf Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
procstat Update META_MODE dependencies. 2015-09-17 05:06:34 +00:00
protect META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
quota
random Final step of eliminating the "games" distribution: Merge src/games 2015-10-02 10:08:11 +00:00
rctl Fix typos in error messages dealing with unknown groups/users 2015-12-01 19:37:24 +00:00
readelf Fix spelling error. 2015-11-25 19:48:09 +00:00
renice
rev
revoke
rlogin
rpcgen
rpcinfo
rs
rsh
rup
ruptime
rusers
rwall
rwho
script
sed Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
send-pr META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
seq
setchannel META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
shar
showmount
size
smbutil META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
sockstat Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
soelim META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
sort Fix some mdoc(7) issues 2015-10-24 13:43:10 +00:00
split
ssh-copy-id
stat
stdbuf
strings
su
svn META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
systat Augment struct tcpstat with tcps_states[], which is used for book-keeping 2016-01-27 00:45:46 +00:00
tabs
tail
talk
tar Don't override LIB*DIR variables from src.libnames.mk. 2015-12-01 22:20:04 +00:00
tcopy
tee
telnet
tests Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
tftp
time
timeout timeout(1): fix the acceptable range values for parse_signal() 2015-10-24 13:47:03 +00:00
tip Don't hide build commands. 2015-09-18 21:01:52 +00:00
top Rename variable to reflect the condition. 2016-02-09 18:35:37 +00:00
touch
tput
tr
true
truncate Fix usr.bin.truncate.truncate_test.bad_truncate with ZFS /tmp. 2016-01-19 22:07:39 +00:00
truss Add support for displaying thread IDs to truss(1). 2016-02-23 19:56:29 +00:00
tset
tsort
tty
ul
uname
unexpand
unifdef Avoid -Wmissing-initializer 2015-12-03 14:32:54 +00:00
uniq
units Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
unvis
unzip - Match directory extraction message with Infozip [1] 2016-01-15 23:04:36 +00:00
usbhidaction Store PID after becoming a daemon() and not before to ensure the 2015-09-28 07:23:05 +00:00
usbhidctl
users
uudecode Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
uuencode Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
vacation META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
vgrind Remove disconnected directory RETEST. 2015-12-04 05:00:51 +00:00
vi META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
vis
vmstat Remove extraneous characters 2015-12-23 07:28:48 +00:00
vtfontcvt
w Add more text to explain --libxo flag. 2015-12-01 19:18:53 +00:00
wall
wc Add more text to explain --libxo flag. 2015-12-01 19:18:53 +00:00
what
whereis
which
who
whois Fix a regression in the .de and .dk whois special cases 2016-01-23 01:20:58 +00:00
write
xargs Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
xinstall META MODE: Remove unneeded libmd.host dependency for xinstall.host. 2015-11-25 19:44:55 +00:00
xlint Add support for RISC-V ISA. 2016-01-22 16:32:22 +00:00
xo Add missing CLEANFILES. 2015-12-07 16:08:13 +00:00
xstr
xz
xzdec
yacc Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
yes
ypcat
ypmatch
ypwhich
Makefile Disable gprof and users on RISC-V, they don't build. 2016-01-25 16:49:39 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64