aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss/syscall.h
diff options
context:
space:
mode:
authorDiomidis Spinellis <dds@FreeBSD.org>2009-05-12 20:42:12 +0000
committerDiomidis Spinellis <dds@FreeBSD.org>2009-05-12 20:42:12 +0000
commitee3b0f6e2e053c63a22950421e05ff93ebc3cd73 (patch)
tree2ea5e736f24721832545f1c7f970fcd55dd11387 /usr.bin/truss/syscall.h
parent6282e61346e9139947b68673f692fc7f33b7ef9e (diff)
downloadsrc-ee3b0f6e2e053c63a22950421e05ff93ebc3cd73.tar.gz
src-ee3b0f6e2e053c63a22950421e05ff93ebc3cd73.zip
Add -c option to summarize number of calls, errors, and system time.
Reviewed by: alfred
Notes
Notes: svn path=/head/; revision=192025
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 39a796a71370..484bb5d42197 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);