]> granicus.if.org Git - strace/commit
count: use parse_ts for parsing overhead value
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 2 Sep 2018 19:56:47 +0000 (21:56 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 6 Aug 2019 13:38:20 +0000 (13:38 +0000)
commitbe5ef21fdabb4904ee119f134daa5af05f8c76de
tree2f3d4b90fa61edb43a16f498acdd12a9c7edb2f7
parent6b5a9d30b99cf99b27dc27a25ede9a0410d97b52
count: use parse_ts for parsing overhead value

* count.c (set_overhead): Change argument type to const char *, call
parse_ts to parse it and set to overhead.
* defs.h (set_overhead): Update declaration.
* strace.c: (init) <case 'O'>: do not parse argument, pass optarg to
set_overhead call.
* tests/count.test (GENERIC, WALLCLOCK, WALLCLOCK1, HALFCLOCK): New
variables with expected patterns.
Add checks for the new -O syntax.
count.c
defs.h
strace.c
tests/count.test