]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 295930:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Apr 2016 18:44:53 +0000 (18:44 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Apr 2016 18:44:53 +0000 (18:44 +0000)
commit7c4db354e0d04c7adcb1a39ee270e0dfae194d9d
treee8dd5720d427eae35489ff8f7ec80a53d9a671bb
parent93410f47c745ed743af5d4d50efd28960e720636
MFC 295930:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/truss/extern.h
usr.bin/truss/main.c
usr.bin/truss/setup.c
usr.bin/truss/syscalls.c
usr.bin/truss/truss.1
usr.bin/truss/truss.h