From patchwork Wed Aug 7 12:37:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 817387 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e11:0:b0:367:895a:4699 with SMTP id p17csp370548wrt; Wed, 7 Aug 2024 05:38:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWuAwDyGIsTrlS/5KpiBM+kodR59h3NPC2yoy0vs7KTXcoG+3xGUHzDIdhcreuHgJ1JDm/L8Y0r/8n8AFtE6/s7 X-Google-Smtp-Source: AGHT+IEQ34+s7UmAvfZOYcFRGC8zO7TQRXeJe79QTCYOxXxYYFpS/tl0iPQTO0WSmztclk/biBWp X-Received: by 2002:a05:620a:1a92:b0:7a1:da64:5683 with SMTP id af79cd13be357-7a377bc6ed8mr413485285a.20.1723034308225; Wed, 07 Aug 2024 05:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723034308; cv=none; d=google.com; s=arc-20160816; b=hrnShN/BvnNoGMH5mVxlvytXSXsid5nIVW6Pq9oPB55hFjl+bJe6pUJHr9PN0d9fnA DgndXPdCJpDWHf01+Hwpl4oj9OBMRZeXH4eGIh0MWYb1VZQVj3cGmqRTrJ95sm9hmeXd /k2ZPk+OB1UcwopDjFpMcysezKZ4XpmM+SVRe9wFWZJkXhPNn0MzDGo6EWq9mXw6Oo3p RasAU4VsDybqZ5/pMdlwILV7fiQtpADF9B0Q3Oy4CmS/Jc/wDU4hwJSjcudAvlCuAY7d +WtkegMmJpQ+hf7WrYNmIEf8bT0TB/HKRcOQt6XuccdqAqhlJOgzZUGFwDQFiLiNr960 SvEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=jKDEOr2MbKzRIueGUKGCdZsTp3Sbw54kpPxGiqJKozo=; fh=ywvbD4ylErzoB2IlWnu3L0NLvq9GVVuZHGzPWx3FgPM=; b=EIWAy2wBG9lYEkYS16994URv4dEKT4k0muKVfMePTZtmlL3jAjG+fljHYUgoN7Ol47 j/Dh8O4z6xiPl9EscDBu7Qc2y4aYKFm/xZabh8ebbyrn2v/6P2dAHdI6YH7d2aG839nq xW48JYMmys3ITxsEpib37rw2OlJobbcanavCn9bdbW6XvoWesQ7xj00zBdNZ8cTbB+kZ wm+Nzqsjg9rnILdIuabHC0WmVlPypppWt2MHuRA+j8weKdO7aXlmmTgP7Kg/vCyTQFYp HPfCp0xdULlIvsbGzXug1QguE0tHgUX7FV6sOFrPpccP8pH258CIWgUc5TjU7+iOJwaS EwWg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MByFVcc3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a378805dbesi146630685a.348.2024.08.07.05.38.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Aug 2024 05:38:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MByFVcc3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbfvE-0002ur-TN; Wed, 07 Aug 2024 08:37:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbfvC-0002u6-Ey for qemu-devel@nongnu.org; Wed, 07 Aug 2024 08:37:42 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sbfv9-0004iM-Vp for qemu-devel@nongnu.org; Wed, 07 Aug 2024 08:37:42 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4281faefea9so11623015e9.2 for ; Wed, 07 Aug 2024 05:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723034257; x=1723639057; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jKDEOr2MbKzRIueGUKGCdZsTp3Sbw54kpPxGiqJKozo=; b=MByFVcc3bzMq18fLV0xxBGPkUjwrwvBChe3Ir+aYjqdeoB+iw3cN/8qfS6GHX7tsGN x2eNl/IyhxgLlGZCebtTPoOvuZOyit9Aqw1SJ8Bcw0DRUhkd4HnUuPbuMdJCowbgi+82 qbEfA8hcepg6EK46H14s06SsXeXirLNGFYhCLUwxFjf/qXevK/jBr9+AelCgESmb90Qh Q120kH9OVSKSN7U2VvfTZ4kEKAI89361vgH07gR9ZyQChRjCXOY6D3g4YmnQtOgWzMYf swuBrWGlwsI9e5x46tiIYBsQKTnHSMSrfTGibF2DNyjbygWAYeGE45kPUVnxL8HXVMYR IzTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723034257; x=1723639057; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jKDEOr2MbKzRIueGUKGCdZsTp3Sbw54kpPxGiqJKozo=; b=td+sKoOfjv/aiEbyqJqFOgr0SHix3kHbWmkPh63DhvxkjhNf+okMx+DB8Y2mQafcw9 yVRY3sJuhvN3VxHE7/iRM08wQh6MQsYQKeKjS5uDGmRo8VJDDHJH3PwJWaPcMXoEf+nN limdtLY8uVqTFeayRRis+bnKBGxFNg7TI8RpcgpJ4Hz4mtoZ3nZqCElF3auWSMkTb/4Z eSH7ttmXhevGuIX2DAH1vYRXdbdYVcsu2Uu/uNp0QQspqL3TGFwlZz7MQBXaHAEPpllp pEKYiLnfs5tGTiohL6EFWGBy5hrG5JVPeHWlobaKXHdzx5GajOiMgJMQaltCLK/Iyj3A /kQQ== X-Gm-Message-State: AOJu0YxL/rl8WanspoE+O4gcYFBVX31WDI0rDSbmUUw4bv5s8s4YDSGO jfQMampzqI+64a5ghL0mS9Gl/8fF7KoFYNf/7BpkqfvJe0AjjIfxP9m1mRWMsDAUWvv+dALToia D X-Received: by 2002:adf:a2de:0:b0:368:4b3a:2021 with SMTP id ffacd0b85a97d-36bbc0c6c50mr13511230f8f.6.1723034257490; Wed, 07 Aug 2024 05:37:37 -0700 (PDT) Received: from m1x-phil.lan ([176.187.212.120]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbcf0c348sm15860514f8f.24.2024.08.07.05.37.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 07 Aug 2024 05:37:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , Zach van Rijn , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/4] linux-user: Trace sendto/recvfrom Date: Wed, 7 Aug 2024 14:37:30 +0200 Message-ID: <20240807123734.52501-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Since v1: - Add/use print_buf_len (rth) Strace format added while debugging https://gitlab.com/qemu-project/qemu/-/issues/2485 Philippe Mathieu-Daudé (4): linux-user: Display sockaddr buffer as pointer linux-user: Factor print_buf_len() out linux-user: Add strace for sendto() linux-user: Add strace for recvfrom() linux-user/strace.c | 51 +++++++++++++++++++++++++++++++++++++----- linux-user/strace.list | 4 ++-- 2 files changed, 47 insertions(+), 8 deletions(-)