diff options
author | jhb <jhb@FreeBSD.org> | 2016-04-21 18:44:53 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-04-21 18:44:53 +0000 |
commit | 6611085190633135fec6ff39c3f81444d9a7aef0 (patch) | |
tree | e8dd5720d427eae35489ff8f7ec80a53d9a671bb /contrib/file/src/encoding.c | |
parent | 06f4ef3b04a9eee1e06846989558ce1e11768bd5 (diff) | |
download | FreeBSD-src-6611085190633135fec6ff39c3f81444d9a7aef0.zip FreeBSD-src-6611085190633135fec6ff39c3f81444d9a7aef0.tar.gz |
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.
Diffstat (limited to 'contrib/file/src/encoding.c')
0 files changed, 0 insertions, 0 deletions