From nobody Tue Nov 4 18:32:08 2025 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.zohomail.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 1530632162930574.5079903844286; Tue, 3 Jul 2018 08:36:02 -0700 (PDT) Received: from localhost ([::1]:41141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faNLW-0000xI-6g for importer@patchew.org; Tue, 03 Jul 2018 11:36:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faNJj-0008M0-75 for qemu-devel@nongnu.org; Tue, 03 Jul 2018 11:34:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faNJd-0001Ru-Jh for qemu-devel@nongnu.org; Tue, 03 Jul 2018 11:34:11 -0400 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:43585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1faNJd-0001Rc-EC for qemu-devel@nongnu.org; Tue, 03 Jul 2018 11:34:05 -0400 Received: by mail-qt0-x243.google.com with SMTP id f18-v6so1917238qtp.10 for ; Tue, 03 Jul 2018 08:34:05 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id k66-v6sm848715qkc.86.2018.07.03.08.34.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 08:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0rSgRHCxJOptL2SWq0MdOwPRkGAy7dUjx6BAEpx6Ej0=; b=J/EUyAWLZ1d+oJVp258HHt3j9ZnAc9UL42aJHfgmiTYBLZbqSXZ4s9WPot/2eaX+61 a5+sUu2jITptPObfOFz/IAn2w0J7hTgUH951RvUWE9wxEnPEAFgbsYoPOj29njcu3iq1 sy9PQAhC44TE879KWJDe4C8Yzbc1i2q68xrsyrEeN6aZ2n1pN5AJC7p3EU2RoLeNMx41 l6LWl87LKXnGOqW+1AVVvL2+Sk9B04KgKGw8maMvORQNEp09NZ48C0OEzlPRMBXhV93w 7pGPdtmkS53Gkqe4XznlAhLugTGxDvYYVDdC3PcqZz7Mtg8/Z7e+1YIbXMUefWYl6qKO dobw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=0rSgRHCxJOptL2SWq0MdOwPRkGAy7dUjx6BAEpx6Ej0=; b=CVQ1kyJAZUgYN4OsMWaYXTocg1pPv52shKp2KhuHEBDz6trNsiMZcStHSSGVYRUeou +l30N+LcHxZpvsAr9xw9qqSWUv0sE+dnubaIrM+s8edDEqKquqhz0EGA9FFpkKlz6x/A KTaScLfBfaGagw6ntdbeZwLTQLzznsQSAdFsJSVBrhogBlKiOT14ktuFyEJV71EFDKHP u+65tV4UI9WVvsn5jxzXmQu9ojbySatnFxxoyEgbYiYqZZMVZxLLkhb3znB4eDNSA7qD BW0XJP52LF1oKzGmWEsTLSKbKXnDt4MHAXw8YhQetZgVXf/eQF6N1Jaqf2iM0MUVpX/N BLwA== X-Gm-Message-State: APt69E0kD3CQBye7lKL9+soxlu7e21obozGyrV3UsSYJfQvzbNWfnZA8 XgZx4oNfXqkpDJzOsojPtQ0= X-Google-Smtp-Source: AAOMgpdKce172lg3qg3O8Gi2Ecfx7dL+mZNSgxwFjzdfOLb26OJmT3wOtQoe5wb8CQ1fFXh8/orDnw== X-Received: by 2002:a0c:8622:: with SMTP id p31-v6mr11147278qva.116.1530632044901; Tue, 03 Jul 2018 08:34:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Laurent Vivier Date: Tue, 3 Jul 2018 12:33:39 -0300 Message-Id: <20180703153346.9050-6-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180703153346.9050-1-f4bug@amsat.org> References: <20180703153346.9050-1-f4bug@amsat.org> 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: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [PATCH v4 05/12] linux-user/strace: Improve settimeofday() 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: =?UTF-8?q?Guido=20G=C3=BCnther?= , Riku Voipio , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org 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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Tested-By: Guido G=C3=BCnther Reviewed-by: Laurent Vivier --- linux-user/strace.c | 13 +++++++++++++ linux-user/strace.list | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index d51e4b6c00..d19dc652cf 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1502,6 +1502,19 @@ print_futimesat(const struct syscallname *name, } #endif =20 +#ifdef TARGET_NR_settimeofday +static void +print_settimeofday(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_timeval(arg0, 0); + print_timezone(arg1, 1); + print_syscall_epilogue(name); +} +#endif + #ifdef TARGET_NR_link static void print_link(const struct syscallname *name, diff --git a/linux-user/strace.list b/linux-user/strace.list index afe4db07f3..90cf7e338a 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -1345,7 +1345,7 @@ { TARGET_NR_set_tid_address, "set_tid_address" , NULL, NULL, NULL }, #endif #ifdef TARGET_NR_settimeofday -{ TARGET_NR_settimeofday, "settimeofday" , NULL, NULL, NULL }, +{ TARGET_NR_settimeofday, "settimeofday" , NULL, print_settimeofday, NULL = }, #endif #ifdef TARGET_NR_setuid { TARGET_NR_setuid, "setuid" , NULL, NULL, NULL }, --=20 2.18.0