2 * Copyright (c) 2003, 2004 Ulrich Drepper <drepper@redhat.com>
3 * Copyright (c) 2005-2018 Dmitry V. Levin <ldv@altlinux.org>
6 * SPDX-License-Identifier: LGPL-2.1-or-later
11 #include DEF_MPERS_TYPE(struct_sigevent)
16 #include "xlat/sigev_value.h"
18 MPERS_PRINTER_DECL(void, print_sigevent,
19 struct tcb *const tcp, const kernel_ulong_t addr)
23 if (umove_or_printaddr(tcp, addr, &sev))
27 if (sev.sigev_value.sival_ptr) {
28 tprintf("sigev_value={sival_int=%d, sival_ptr=",
29 sev.sigev_value.sival_int);
30 printaddr(sev.sigev_value.sival_ptr);
34 tprints("sigev_signo=");
35 switch (sev.sigev_notify) {
39 printsignal(sev.sigev_signo);
42 tprintf("%u", sev.sigev_signo);
45 tprints(", sigev_notify=");
46 printxval(sigev_value, sev.sigev_notify, "SIGEV_???");
48 switch (sev.sigev_notify) {
50 tprintf(", sigev_notify_thread_id=%d", sev.sigev_un.tid);
53 tprints(", sigev_notify_function=");
54 printaddr(sev.sigev_un.sigev_thread.function);
55 tprints(", sigev_notify_attributes=");
56 printaddr(sev.sigev_un.sigev_thread.attribute);