summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/truss.h
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-05-15 21:18:28 +0000
committerpav <pav@FreeBSD.org>2006-05-15 21:18:28 +0000
commita233d0a2ec889dcec576eb60c9c97703c6e6411d (patch)
treebc8d8d905841a0fb10ed22ce3afee50b7fefe6a5 /usr.bin/truss/truss.h
parenta95ed1e45aefd859e733662f5150c4d8d1ece4c8 (diff)
downloadFreeBSD-src-a233d0a2ec889dcec576eb60c9c97703c6e6411d.zip
FreeBSD-src-a233d0a2ec889dcec576eb60c9c97703c6e6411d.tar.gz
- Add decoding of kse_release, kevent, sigprocmask, unmount, socket, getrusage,
rename, __getcwd, shutdown, getrlimit, setrlimit, _umtx_lock, _umtx_unlock, pathconf, truncate, ftruncate, kill - Decode more arguments of open, mprot, *stat, and fcntl. - Convert all constant-macro and bitfield decoding to lookup tables; much cleaner than previous code. - Print the timestamp of process exit and signal reception when -d or -D are in use - Try six times with 1/2 second delay to debug the child PR: bin/52190 (updated) Submitted by: Dan Nelson <dnelson@allantgroup.com> Approved by: alfred
Diffstat (limited to 'usr.bin/truss/truss.h')
-rw-r--r--usr.bin/truss/truss.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/truss/truss.h b/usr.bin/truss/truss.h
index 24558ba..575260b 100644
--- a/usr.bin/truss/truss.h
+++ b/usr.bin/truss/truss.h
@@ -44,3 +44,13 @@ struct trussinfo
struct timespec before;
struct timespec after;
};
+
+#define timespecsubt(tvp, uvp, vvp) \
+ do { \
+ (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
+ (vvp)->tv_nsec = (tvp)->tv_nsec - (uvp)->tv_nsec; \
+ if ((vvp)->tv_nsec < 0) { \
+ (vvp)->tv_sec--; \
+ (vvp)->tv_nsec += 1000000000; \
+ } \
+ } while (0)
OpenPOWER on IntegriCloud