aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss/main.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-03-09 18:45:41 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-03-09 18:45:41 +0000
commitb9befd33b4d3ab72c23b06adb74b60988b6cc31e (patch)
tree84ed08ba40c0cafe374e42abb001e22bae7c8c5a /usr.bin/truss/main.c
parent6fc8053f1a380ae93513f9372cc5456417a1b362 (diff)
downloadsrc-b9befd33b4d3ab72c23b06adb74b60988b6cc31e.tar.gz
src-b9befd33b4d3ab72c23b06adb74b60988b6cc31e.zip
Use ptrace(2) LWP events to track threads reliably in truss.
- truss can now log the system call invoked by a thread during a voluntary process exit. No return value is logged, but the value passed to exit() is included in the trace output. Arguments passed to thread exit system calls such as thr_exit() are not logged as voluntary thread exits cannot be distinguished from involuntary thread exits during a system call. - New events are now reported for thread births and exits similar to the recently added events for new child processes when following forks. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5561
Notes
Notes: svn path=/head/; revision=296571
Diffstat (limited to 'usr.bin/truss/main.c')
0 files changed, 0 insertions, 0 deletions