diff options
author | dds <dds@FreeBSD.org> | 2009-05-12 20:42:12 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2009-05-12 20:42:12 +0000 |
commit | bea63f2169976b2254c53843e9b89e787efeb6c0 (patch) | |
tree | 2ea5e736f24721832545f1c7f970fcd55dd11387 /usr.bin/truss/syscall.h | |
parent | 855c3dbe902b8404b5675dffea0c0642a9ac228a (diff) | |
download | FreeBSD-src-bea63f2169976b2254c53843e9b89e787efeb6c0.zip FreeBSD-src-bea63f2169976b2254c53843e9b89e787efeb6c0.tar.gz |
Add -c option to summarize number of calls, errors, and system time.
Reviewed by: alfred
Diffstat (limited to 'usr.bin/truss/syscall.h')
-rw-r--r-- | usr.bin/truss/syscall.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/truss/syscall.h b/usr.bin/truss/syscall.h index 39a796a..484bb5d 100644 --- a/usr.bin/truss/syscall.h +++ b/usr.bin/truss/syscall.h @@ -57,10 +57,14 @@ struct syscall { int nargs; /* actual number of meaningful arguments */ /* Hopefully, no syscalls with > 10 args */ struct syscall_args args[10]; + struct timespec time; /* Time spent for this call */ + int ncalls; /* Number of calls */ + int nerror; /* Number of calls that returned with error */ }; struct syscall *get_syscall(const char*); char *print_arg(struct syscall_args *, unsigned long*, long, struct trussinfo *); void print_syscall(struct trussinfo *, const char *, int, char **); void print_syscall_ret(struct trussinfo *, const char *, int, char **, int, - long); + long, struct syscall *); +void print_summary(struct trussinfo *trussinfo); |