2 * Copyright (c) 2001 Wichert Akkerman <wichert@deephackmode.org>
3 * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
4 * Copyright (c) 2014-2018 The strace developers.
7 * SPDX-License-Identifier: LGPL-2.1-or-later
14 # ifdef HAVE_LINUX_UTSNAME_H
15 # include <linux/utsname.h>
17 # ifdef HAVE_ASM_SYSMIPS_H
18 # include <asm/sysmips.h>
21 # ifndef __NEW_UTS_LEN
22 # define __NEW_UTS_LEN 64
25 # include "xlat/sysmips_operations.h"
29 printxval64(sysmips_operations, tcp->u_arg[0], "???");
32 switch (tcp->u_arg[0]) {
34 char nodename[__NEW_UTS_LEN + 1];
38 if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN + 1),
40 printaddr(tcp->u_arg[1]);
42 print_quoted_cstring(nodename, __NEW_UTS_LEN + 1);
47 printaddr(tcp->u_arg[1]);
48 tprintf(", %#" PRI_klx, tcp->u_arg[2]);
51 tprintf("%#" PRI_klx, tcp->u_arg[1]);
55 tprintf("%" PRI_kld ", %" PRI_kld ", %" PRI_kld,
56 tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);