diff options
| author | Dmitry V. Levin <ldv@altlinux.org> | 2014-05-29 18:10:00 +0000 |
|---|---|---|
| committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-05-29 18:10:00 +0000 |
| commit | ac5133d0cb5c18a39f6fa9b7ca2ebcba9277a904 (patch) | |
| tree | b3f62c4e2cb93ca1fbaa73aecc7ed2fecd8785b2 /defs.h | |
| parent | 447db45365e37ec97c41b26b5a24e38d58e4f3ae (diff) | |
| download | android_external_strace-ac5133d0cb5c18a39f6fa9b7ca2ebcba9277a904.tar.gz android_external_strace-ac5133d0cb5c18a39f6fa9b7ca2ebcba9277a904.tar.bz2 android_external_strace-ac5133d0cb5c18a39f6fa9b7ca2ebcba9277a904.zip | |
Constify count_syscall function
* count.c (count_syscall): Add const qualifier to timeval argument and
rename it. Store the wall clock time spent while in syscall in separate
timeval variable.
* defs.h (count_syscall): Update prototype.
* syscall.c (trace_syscall_exiting): Update count_syscall invocation.
Diffstat (limited to 'defs.h')
| -rw-r--r-- | defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -587,7 +587,7 @@ extern void set_overhead(int); extern void qualify(const char *); extern void print_pc(struct tcb *); extern int trace_syscall(struct tcb *); -extern void count_syscall(struct tcb *, struct timeval *); +extern void count_syscall(struct tcb *, const struct timeval *); extern void call_summary(FILE *); #if defined(AVR32) \ |
