2 * Copyright (c) 1993 Ulrich Pegelow <pegelow@moorea.uni-muenster.de>
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) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6 * Copyright (c) 2003-2006 Roland McGrath <roland@redhat.com>
7 * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
8 * Copyright (c) 2015-2017 The strace developers.
11 * SPDX-License-Identifier: LGPL-2.1-or-later
18 #include DEF_MPERS_TYPE(msgbuf_t)
19 typedef struct msgbuf msgbuf_t;
22 MPERS_PRINTER_DECL(void, tprint_msgbuf, struct tcb *const tcp,
23 const kernel_ulong_t addr, const kernel_ulong_t count)
27 if (!umove_or_printaddr(tcp, addr, &msg)) {
28 tprintf("{%" PRI_kld ", ", (kernel_long_t) msg.mtype);
29 printstrn(tcp, addr + sizeof(msg.mtype), count);
32 tprintf(", %" PRI_klu ", ", count);