summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/syscall.h
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2009-05-12 20:42:12 +0000
committerdds <dds@FreeBSD.org>2009-05-12 20:42:12 +0000
commitbea63f2169976b2254c53843e9b89e787efeb6c0 (patch)
tree2ea5e736f24721832545f1c7f970fcd55dd11387 /usr.bin/truss/syscall.h
parent855c3dbe902b8404b5675dffea0c0642a9ac228a (diff)
downloadFreeBSD-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.h6
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);
OpenPOWER on IntegriCloud