2 * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3 * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4 * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
5 * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
6 * Copyright (c) 2015-2019 The strace developers.
9 * SPDX-License-Identifier: LGPL-2.1-or-later
12 #include "print_fields.h"
15 PRINT_TIMEX(struct tcb *const tcp, const kernel_ulong_t addr)
19 if (umove_or_printaddr(tcp, addr, &tx))
22 PRINT_FIELD_FLAGS("{", tx, modes, adjtimex_modes, "ADJ_???");
23 PRINT_FIELD_D(", ", tx, offset);
24 PRINT_FIELD_D(", ", tx, freq);
25 PRINT_FIELD_D(", ", tx, maxerror);
26 PRINT_FIELD_D(", ", tx, esterror);
27 PRINT_FIELD_FLAGS(", ", tx, status, adjtimex_status, "STA_???");
28 PRINT_FIELD_D(", ", tx, constant);
29 PRINT_FIELD_D(", ", tx, precision);
30 PRINT_FIELD_D(", ", tx, tolerance);
31 PRINT_FIELD_D(", time={", tx.time, tv_sec);
32 PRINT_FIELD_U(", ", tx.time, tv_usec);
33 PRINT_FIELD_D("}, ", tx, tick);
34 PRINT_FIELD_D(", ", tx, ppsfreq);
35 PRINT_FIELD_D(", ", tx, jitter);
36 PRINT_FIELD_D(", ", tx, shift);
37 PRINT_FIELD_D(", ", tx, stabil);
38 PRINT_FIELD_D(", ", tx, jitcnt);
39 PRINT_FIELD_D(", ", tx, calcnt);
40 PRINT_FIELD_D(", ", tx, errcnt);
41 PRINT_FIELD_D(", ", tx, stbcnt);
42 PRINT_FIELD_D(", ", tx, tai);