From patchwork Wed May 31 13:08:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 100758 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp296365obc; Wed, 31 May 2017 06:16:25 -0700 (PDT) X-Received: by 10.55.118.197 with SMTP id r188mr28158637qkc.234.1496236585673; Wed, 31 May 2017 06:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496236585; cv=none; d=google.com; s=arc-20160816; b=A+A3MW+N4+6uBrrCxRacu57qzmhvpP3QbmUkOZO0ASMBzlwHc/lmPZzF9j/24D2P0Y UyB44QoCEck9vHisyfy4YSlvV75TBW9U4oHZPgHr1AaNcL8Fn0+WReTatxcLvSXWOxD/ LxsMLcaDusx2W5NB4HT4dAI+X0PsSqE91J/DLbD+pRfrvVC2PhSybIGi0Qv9rJn9dDTD 8lmeh8PLDRy2vjlPt6/1YGjXSUuvp2lnoVzkZmKuOQBod3eQ0XrQ70y4LpH5Nw8bLOZy vVascYPSIHfr+N6Nn9eIZHg0com0G8LtGhCaJkQOc5+N7jaYEl1NcX+ptgBIyDjPh/nH vwCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=n5HQ3fgf3e/teeHOtsIJQPnKTQjRzhVSrTS2x3ysZ5k=; b=YiOwOdbs7RF6dH4b3MuUPijwi3ndVlZ5yA/4TNQtwdXd/sSNZ+JpQT8TCXCiaEmgx/ 0HkA3z9kB6KOw2Zg5e6UVOZgYwuQJdCXjaAK0ppf9zM2U9dQjl7MzE62M8WNw1H28ieL qsYcZTLEqfl6/z0ZLp8MhCok5tOEyKQUzZ+jPRMPt63SZtk+zyfvNiDXlFng7VGEnWuf DXXmmrhniU4NVti7itqyIVrxkzJ4US8yrbEENe0JocMzLkDshG08ZIqwnMRB6OBEJqcO HrcxG4x75NXDaQismlX72HBM+n+SYrIrIMvj007OBFfFyRbSMTtwHN9gpShoBLVURV8S N24w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f22si16227256qtc.132.2017.05.31.06.16.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 31 May 2017 06:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG3U6-0005jv-Sc for patch@linaro.org; Wed, 31 May 2017 09:16:22 -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) 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) 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) 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 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?b?TWlsb8WhIFN0b2phbm92acSH?= , stefanha@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Miloš Stojanović 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) = 0 After this commit, it looks like this: 7775 rt_tgsigqueueinfo(7775,7775,50,0x76ffea5c) = 0 Signed-off-by: Miloš Stojanović Signed-off-by: Riku Voipio --- linux-user/strace.c | 15 +++++++++++++++ linux-user/strace.list | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) -- 2.11.0 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 +#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_tgsigqueueinfo, NULL }, #endif #ifdef TARGET_NR_sched_getaffinity { TARGET_NR_sched_getaffinity, "sched_getaffinity" , NULL, NULL, NULL },