freebsd-dev/usr.bin/truss
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
..
aarch64-cloudabi64.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
aarch64-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
amd64-cloudabi64.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
amd64-freebsd32.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
amd64-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
amd64-linux32.c Sign extend the error value for failing Linux/i386 system calls. This 2016-02-15 20:26:40 +00:00
arm-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
cloudabi.c Make truss work for CloudABI processes on aarch64. 2015-10-30 08:11:37 +00:00
cloudabi.h Make truss work for CloudABI processes on aarch64. 2015-10-30 08:11:37 +00:00
extern.h Add support for displaying thread IDs to truss(1). 2016-02-23 19:56:29 +00:00
i386-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
i386-linux.c Correct the ABI name for Linux/i386 binaries under FreeBSD/i386. 2016-02-15 20:27:16 +00:00
main.c Add support for displaying thread IDs to truss(1). 2016-02-23 19:56:29 +00:00
Makefile Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2016-02-16 02:14:30 +00:00
makesyscallsconf.sh Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
mips-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
powerpc64-freebsd32.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
powerpc64-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
powerpc-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
setup.c Add support for displaying thread IDs to truss(1). 2016-02-23 19:56:29 +00:00
sparc64-freebsd.c Add a SYSDECODE_ABI_ prefix to the ABI enums to avoid potential collisions. 2016-01-30 01:00:54 +00:00
syscall.h Fetch the current thread and it's syscall state from the trussinfo object 2016-02-16 22:00:01 +00:00
syscalls.c Add support for displaying thread IDs to truss(1). 2016-02-23 19:56:29 +00:00
truss.1 Add support for displaying thread IDs to truss(1). 2016-02-23 19:56:29 +00:00
truss.h Add support for displaying thread IDs to truss(1). 2016-02-23 19:56:29 +00:00