From nobody Sat Feb 7 06:54:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1682002960; cv=none; d=zohomail.com; s=zohoarc; b=AXtFkhKm2dSOyR2MnEVUyMdyKV+uBoM/w4Wh1didx+5xeA8aqN1XZJF/vzge5SAYOBYLUQzFl95BMrxECKQOWfvO3NuyyQDVmJ0fQzx4gfaqF5dxjJ7RsY4h+OAzpUsEPqBwugm1Qb72/EAH4djCjwgk4fO+CB0sBbmM+hFwq7M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682002960; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MTE4gF7XsZ9y5Na2NQaOlWvM5YSPdb/d1vz4kdTlojw=; b=HcJuVBn/LJH4G3Cfp1Lc+xVLjg7KNUda81svPAz/4XXaSgnc5I4Yqa8CzVnN3zrvlCUSkAJn3UVAIetdJP5AK/wXAVEZUegRO2X0n4bJzccHXtcs7l1J3+MLiPOx9T7yowmLiJx2f5WCVxiTkyxjc3W9N8/QHVu41poK4f+wPWc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 168200296051931.312827141309867; Thu, 20 Apr 2023 08:02:40 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppVls-0003o0-33; Thu, 20 Apr 2023 11:00:28 -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 1ppVlg-0003ae-Rp for qemu-devel@nongnu.org; Thu, 20 Apr 2023 11:00:17 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppVle-00045g-Ea for qemu-devel@nongnu.org; Thu, 20 Apr 2023 11:00:16 -0400 Received: by mail-wm1-x32a.google.com with SMTP id iw7-20020a05600c54c700b003f16fce55b5so1304518wmb.0 for ; Thu, 20 Apr 2023 08:00:12 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id p9-20020a1c7409000000b003f17ee3bdc3sm2196686wmc.42.2023.04.20.08.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 08:00:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0E5361FFB8; Thu, 20 Apr 2023 16:00:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682002811; x=1684594811; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MTE4gF7XsZ9y5Na2NQaOlWvM5YSPdb/d1vz4kdTlojw=; b=b+RSzvFiKnpyiN7mEZxxrNuGLWLzhRYc86gdP33870JrqbCDAK5vTMkejSXjBVN9ym aLkpyl87rbQ9L3h2KdXj0RJulTDO5EnVPrjhbbYRtScAE2DCrQk9rXxd4aPbQbHGHIOv BHipwgFUCerLOrkvxcMd/AlJJajzZcCxwScEZZmXfGIhvBzZgZKrW6HY5zJdUGz/weBI dpViOU5T6XYFVlQc8kMyCB+l2rjzUo0pvJ9GMQyHp5pOCCHhQwoBGgm6DPKuWrBm2HHu a0OU5Rev7s7JqBlx77hJI9tT8shjV2c1zCmvm7uB6R4qjEOxNNvjXEh5sX3NL6YQQxtD SS0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682002811; x=1684594811; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MTE4gF7XsZ9y5Na2NQaOlWvM5YSPdb/d1vz4kdTlojw=; b=gIw06o5AK6+oEmMcIsL3N4UoYgrajgfrCgHy7Pju+0zlLIYRUIOe2UpcfcgQUyt0w/ yRpxHxGLn5Tn+y8cJdMQgfT2CiOkRXsXEb6c1bJX206Y+AWGy0IhO6yfN9tUSAZDHy+u 5NloktJGyfSr8igg+Nl6WUiPMVWgwuc4xlqaU78X6+ex5w2C9zZq4uTxgh7GfeBYdR6s 7nLKfhQhrogT+kUgYaXJhI6V4K5HtOI+b7n4WcYxAPQAfX9u5q7jAYhqNU78PJU5L5A9 5TUkEUPP8f2AiCy7RiZ18J/iPw3CUt26/c9X2dou7tVxL3AARxDveX7ZXa6/h8rIW9du q/Xg== X-Gm-Message-State: AAQBX9cbnU/8jM0go/pjbDeeJtYbRnbS5hfc7j87rpHmhVePUINiHY1D do8Je/Lt58R5HXfTUK3g7CRcmw== X-Google-Smtp-Source: AKy350ZnYuDYbu5ILkjsXork1AZLIKAYHFqJ4yriYjlORTOS73jZsWAQZnrIKXPD42aZdA3DLMalMQ== X-Received: by 2002:a1c:ed18:0:b0:3ed:88f5:160a with SMTP id l24-20020a1ced18000000b003ed88f5160amr1555454wmh.11.1682002811019; Thu, 20 Apr 2023 08:00:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Riku Voipio , Christian Schoenebeck , Yanan Wang , Greg Kurz , Richard Henderson , Kyle Evans , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eduardo Habkost , Stefan Hajnoczi , Eric Blake , Markus Armbruster , Warner Losh , Paolo Bonzini , Marcel Apfelbaum , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 01/10] *-user: remove the guest_user_syscall tracepoints Date: Thu, 20 Apr 2023 16:00:00 +0100 Message-Id: <20230420150009.1675181-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230420150009.1675181-1-alex.bennee@linaro.org> References: <20230420150009.1675181-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1682002962659100001 This is pure duplication now. Both bsd-user and linux-user have builtin strace support and we can also track syscalls via the plugins system. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Warner Losh --- include/user/syscall-trace.h | 4 ---- bsd-user/freebsd/os-syscall.c | 2 -- trace-events | 19 ------------------- 3 files changed, 25 deletions(-) diff --git a/include/user/syscall-trace.h b/include/user/syscall-trace.h index 90bda7631c..557f881a79 100644 --- a/include/user/syscall-trace.h +++ b/include/user/syscall-trace.h @@ -26,9 +26,6 @@ static inline void record_syscall_start(void *cpu, int nu= m, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8) { - trace_guest_user_syscall(cpu, num, - arg1, arg2, arg3, arg4, - arg5, arg6, arg7, arg8); qemu_plugin_vcpu_syscall(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); @@ -36,7 +33,6 @@ static inline void record_syscall_start(void *cpu, int nu= m, =20 static inline void record_syscall_return(void *cpu, int num, abi_long ret) { - trace_guest_user_syscall_ret(cpu, num, ret); qemu_plugin_vcpu_syscall_ret(cpu, num, ret); } =20 diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c index c8f998ecec..b0ae43766f 100644 --- a/bsd-user/freebsd/os-syscall.c +++ b/bsd-user/freebsd/os-syscall.c @@ -531,7 +531,6 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi= _long arg1, CPUState *cpu =3D env_cpu(cpu_env); abi_long ret; =20 - trace_guest_user_syscall(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6,= arg7, arg8); if (do_strace) { print_freebsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6); } @@ -541,7 +540,6 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi= _long arg1, if (do_strace) { print_freebsd_syscall_ret(num, ret); } - trace_guest_user_syscall_ret(cpu, num, ret); =20 return ret; } diff --git a/trace-events b/trace-events index b6b84b175e..691c3533e4 100644 --- a/trace-events +++ b/trace-events @@ -85,22 +85,3 @@ vcpu guest_cpu_exit(void) # Targets: all vcpu guest_cpu_reset(void) =20 -# include/user/syscall-trace.h - -# @num: System call number. -# @arg*: System call argument value. -# -# Start executing a guest system call in syscall emulation mode. -# -# Mode: user -# Targets: TCG(all) -vcpu guest_user_syscall(uint64_t num, uint64_t arg1, uint64_t arg2, uint64= _t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6, uint64_t arg7, uint64= _t arg8) "num=3D0x%016"PRIx64" arg1=3D0x%016"PRIx64" arg2=3D0x%016"PRIx64" = arg3=3D0x%016"PRIx64" arg4=3D0x%016"PRIx64" arg5=3D0x%016"PRIx64" arg6=3D0x= %016"PRIx64" arg7=3D0x%016"PRIx64" arg8=3D0x%016"PRIx64 - -# @num: System call number. -# @ret: System call result value. -# -# Finish executing a guest system call in syscall emulation mode. -# -# Mode: user -# Targets: TCG(all) -vcpu guest_user_syscall_ret(uint64_t num, uint64_t ret) "num=3D0x%016"PRIx= 64" ret=3D0x%016"PRIx64 --=20 2.39.2