]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 295930:
authorjhb <jhb@FreeBSD.org>
Thu, 21 Apr 2016 18:44:53 +0000 (18:44 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 21 Apr 2016 18:44:53 +0000 (18:44 +0000)
commit6611085190633135fec6ff39c3f81444d9a7aef0
treee8dd5720d427eae35489ff8f7ec80a53d9a671bb
parent06f4ef3b04a9eee1e06846989558ce1e11768bd5
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.
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