summaryrefslogtreecommitdiff
path: root/tests/strace--relative-timestamps-ms.expected
Commit message (Collapse)AuthorAgeFilesLines
* strace: add arguments to --syscall-times and --relative-timestampsEugene Syromyatnikov2020-02-191-0/+2
* defs.h (Tflag_scale, Tflag_width): New declarations. * strace.c (Tflag_scale, Tflag_width, rflag_scale, rflag_width): New variables. (printleader): Parametrise relative timestamp printing with rflag_width and rflag_scale. (init) <longopts>: Change second field of "relative-timestamps" and "syscall-times" from no_argument to optional_argument. (init) <case 'r', case 'T'>: Handle optarg, fail if the scale variable is set to -1. (usage): Document it. * strace.1.in (.SS Output format): Likewise. * syscall.c (syscall_exiting_trace): Parametrise syscall time printing * with Tflag_width and Tflag_scale. * tests/gen_tests.in (strace--relative-timestamps-s, strace--relative-timestamps-ms, strace--relative-timestamps-us, strace--relative-timestamps-ns): New tests. * tests/options-syntax.test: New checks for --relative-timestamps and --syscall-times option syntax. * tests/strace--relative-timestamps-ms.expected: New file. * tests/strace--relative-timestamps-ns.expected: Likewise. * tests/strace--relative-timestamps-s.expected: Likewise. * tests/strace--relative-timestamps-us.expected: Likewise. * tests/strace--syscall-times-ms.expected: Likewise. * tests/strace--syscall-times-ns.expected: Likewise. * tests/strace--syscall-times-s.expected: Likewise. * tests/strace--syscall-times-us.expected: Likewise. * tests/Makefile.am (EXTRA_DIST): Add them.