From nobody Fri Nov 7 12:35:13 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 153921132482866.74011453055732; Wed, 10 Oct 2018 15:42:04 -0700 (PDT) Received: from localhost ([::1]:59452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gANB5-0005wp-PI for importer@patchew.org; Wed, 10 Oct 2018 18:42:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAN6N-0002ee-9g for qemu-devel@nongnu.org; Wed, 10 Oct 2018 18:37:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAN6K-0000N5-LM for qemu-devel@nongnu.org; Wed, 10 Oct 2018 18:37:10 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:55215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAN6J-0000JD-Eg for qemu-devel@nongnu.org; Wed, 10 Oct 2018 18:37:08 -0400 Received: by mail-wm1-x335.google.com with SMTP id r63-v6so7064151wma.4 for ; Wed, 10 Oct 2018 15:37:06 -0700 (PDT) Received: from x1.local (26.red-83-32-208.dynamicip.rima-tde.net. [83.32.208.26]) by smtp.gmail.com with ESMTPSA id q77-v6sm10344886wmd.33.2018.10.10.15.37.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 15:37: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=3kAOsYRiFVJksmPZLwxebdoJBKsX2VAhyUpwsb1TMRI=; b=PlIqcG1DTMWHm8Tt8P87+ALdWwalnHqIjGpd5NRSN0DzLlBCZOafuBc6z9Pam8daqC momtECl/MLgJYDp/p+II0kEApyxWZ21V7Rq2it+qI74YNUTTDqkjwWtgmPl2SXScDhfM DXWYNf+Yfw1wblQpdNjKhAIa1ESLJeSpmV8SC+7fFLCzGXKjRfFGgP+gPLM+1EFN7LcX wN/5Pauw4+W+LqXYqtaglvrb4f3PKTdCI9mtj15SXZCyyxuyY96uJUL7tECUBJFEvCMO 8nqcR+fAHtkPt/NllkE7RBB9lSQBZ7ZH+RQ3wFWv+78xa74eTR0gApdU90spJhLPvbsG EcRQ== 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=3kAOsYRiFVJksmPZLwxebdoJBKsX2VAhyUpwsb1TMRI=; b=dVVoQaEwrbkj7aCyaWg/kxXICLaly/Vy7bqwMmT3Pf/dXvB1s00jufgzKZrM7Z+f/t RjowbblnBtKXiD4/hC3CwYUC4yxZrlFNDger75aiAZ/WHtaguM43Z4Yl3nbRDCMQYsSS YY3NSQTUnCn1RTk4xZSyZuDuTW2WE8otgDL+Ag5utSgAXoVliAM4fKkr6YrEpW1CPHQu Qo0LDmSzqm8+wiuwLyxSq7BfoxkZd2rFHe5sHraUe+ntL+eREFCjAkBnFzfxT9VTXlvL Zd7OReOO9hwlp5hIq3BPTGL58SNswHCsdIlaxijj3m6Ka2glU5ibkcGdEf+MXEws+NTa klCA== X-Gm-Message-State: ABuFfohIerNqz7FbQAwlFHHhKTXbfrETaoMqt5cDR4pXp4BA54ohqrUU PC1KuPPa2UtKHYWlVdSEx3Q= X-Google-Smtp-Source: ACcGV63b+o2LAyqdXePslfHY3MNf7C963lpPnWyPVqyjb0YN+Dd/3fNbHXcvEyq7ijwLMIUzBXDYig== X-Received: by 2002:a1c:9901:: with SMTP id b1-v6mr2246629wme.15.1539211025590; Wed, 10 Oct 2018 15:37:05 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Laurent Vivier Date: Thu, 11 Oct 2018 00:36:50 +0200 Message-Id: <20181010223656.31632-5-f4bug@amsat.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181010223656.31632-1-f4bug@amsat.org> References: <20181010223656.31632-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: 2a00:1450:4864:20::335 Subject: [Qemu-devel] [PATCH v5 04/10] 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 10ae22263c..ca2cd75993 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 ff8bb19f5f..31093c3371 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.19.1