From nobody Mon Feb 9 19:10:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1496236672228660.5845245953981; Wed, 31 May 2017 06:17:52 -0700 (PDT) Received: from localhost ([::1]:59369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG3VU-00070y-O5 for importer@patchew.org; Wed, 31 May 2017 09:17:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG3Mr-0007gq-RQ for qemu-devel@nongnu.org; Wed, 31 May 2017 09:08:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG3Mp-0003g4-AC for qemu-devel@nongnu.org; Wed, 31 May 2017 09:08:53 -0400 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:34512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dG3Mp-0003fp-3Y for qemu-devel@nongnu.org; Wed, 31 May 2017 09:08:51 -0400 Received: by mail-lf0-x229.google.com with SMTP id 99so8623444lfu.1 for ; Wed, 31 May 2017 06:08:51 -0700 (PDT) Received: from localhost.localdomain (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id o101sm3741766lfg.3.2017.05.31.06.08.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 May 2017 06:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n5HQ3fgf3e/teeHOtsIJQPnKTQjRzhVSrTS2x3ysZ5k=; b=h14XFXsTxOxXGBVx9h8YfD8jKvDMtzaUWVnb4DorkZOAhW2HL+HWf9ayBRkhTeBPEZ CG0KXAyJ/HWMk2mSiH5VTpXtEQrbjeippgdlsGVWklIesBCTsN24NoZIYlmOtgMVoQlM gDt4vxKSgDjcILiNXvE9EUzzZ3Cffc7XLBLWY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n5HQ3fgf3e/teeHOtsIJQPnKTQjRzhVSrTS2x3ysZ5k=; b=LdiR4UMv1BXD2FsRNo0AhPv7MsFAD/BLy939IcZff1su2p5j9boPeHBt+zzlQxEwTc Vx4VakSgEIiNzJvZZe9DL81rT2zWE4Th4/iCNpRYHJAvyjtXuNvyEPfp9bFDHuAEdUbl S5aEriRCGty+nD5B8zzZkklj2zEsC1gGdBEzXGAk3WRuJLA+SM8FDhKxRQ4javVcMeLy vIEU1hU7+V8aXUkbpJ0u9KsbuKBm6yETtcnfMeL367O33GL3mxV27AdAOsaQ1KmHpmgm uGEAEy2xHbKQJgFTD96CHMiw8FRNXVDBEJ5MScTLtmwQlhJpi1F5+Fhb9RRngACgD1jm yHqA== X-Gm-Message-State: AODbwcD2bl4+Nh1TIHC8d4R7q+doXCDt0HrGGBMNARRrxYm9I53u9/Pd GHxX0AXsra1XqW74YaKx1A== X-Received: by 10.46.69.130 with SMTP id s124mr7875276lja.44.1496236129785; Wed, 31 May 2017 06:08:49 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 31 May 2017 16:08:25 +0300 Message-Id: <243e0fe5506d6b830e01d8da727ff7f20fa38502.1496234767.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::229 Subject: [Qemu-devel] [PULL 13/15] linux-user: add rt_tgsigqueueinfo() strace X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?UTF-8?q?Milo=C5=A1=20Stojanovi=C4=87?= , stefanha@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 From: Milo=C5=A1 Stojanovi=C4=87 This commit improves strace support for syscall rt_tgsigqueueinfo(). Prior to this commit, typical strace output used to look like this: 7775 rt_tgsigqueueinfo(7775,7775,50,1996483164,0,0) =3D 0 After this commit, it looks like this: 7775 rt_tgsigqueueinfo(7775,7775,50,0x76ffea5c) =3D 0 Signed-off-by: Milo=C5=A1 Stojanovi=C4=87 Signed-off-by: Riku Voipio --- linux-user/strace.c | 15 +++++++++++++++ linux-user/strace.list | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index f6f76a5bd4..779cda1a5e 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1915,6 +1915,21 @@ print_rt_sigqueueinfo(const struct syscallname *name, } #endif =20 +#ifdef TARGET_NR_rt_tgsigqueueinfo +static void +print_rt_tgsigqueueinfo(const struct syscallname *name, + abi_long arg0, abi_long arg1, abi_long arg2, + abi_long arg3, abi_long arg4, abi_long arg5) +{ + print_syscall_prologue(name); + print_raw_param("%d", arg0, 0); + print_raw_param("%d", arg1, 0); + print_signal(arg2, 0); + print_pointer(arg3, 1); + print_syscall_epilogue(name); +} +#endif + #ifdef TARGET_NR_syslog static void print_syslog_action(abi_ulong arg, int last) diff --git a/linux-user/strace.list b/linux-user/strace.list index 373d43689a..a91e33f7e5 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -1167,7 +1167,7 @@ { TARGET_NR_rt_sigtimedwait, "rt_sigtimedwait" , NULL, NULL, NULL }, #endif #ifdef TARGET_NR_rt_tgsigqueueinfo -{ TARGET_NR_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" , NULL, NULL, NULL }, +{ TARGET_NR_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" , NULL, print_rt_tgsigq= ueueinfo, NULL }, #endif #ifdef TARGET_NR_sched_getaffinity { TARGET_NR_sched_getaffinity, "sched_getaffinity" , NULL, NULL, NULL }, --=20 2.11.0