Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp230171lqg; Thu, 11 Apr 2024 00:26:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVS29Z54UrdSzpI3px7KNuIkBCxB6Bq9rn83Epx9R77SPmCcuQmIW27j/sgVlmv8kIRpl8TiXFq4YecZ/dEwVItIVV5EIMf4M96RGgOA== X-Google-Smtp-Source: AGHT+IGViB2th33lcbYEBaMxel5myE0//IsKHGn2qDlZYicu4iZNWgyXGR4MBeuYIEs7Eg7IF+dD X-Received: by 2002:a50:9f65:0:b0:568:d7fe:a768 with SMTP id b92-20020a509f65000000b00568d7fea768mr3772433edf.25.1712820394635; Thu, 11 Apr 2024 00:26:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712820394; cv=pass; d=google.com; s=arc-20160816; b=t1uI+/xKR04AlnEIkqxpy5ORa137mmaoUyG/neNpc9VfNm17KWt2whOHakBXL4h3jt Q8HDS2cbHI36OZoGJgeQ3lP/Z0jKYfispzFgJo5VCoNi7ljssB3d/tWPRL/NcEHLjvTE dvAGThgCv/fTTd2ujdArLlrNz+ODHiti7bexgqOjeb6Z0TCTu0F9MSxRvNoDWQm+qoj6 Bs1w77qHYPl3dwjY24mj4aSdxnAui9Cff7ScQtJD8uLF4jAZ0o4dJPQ4+FEJ+nl5E9JB hlkxmCNvXqjCy6udPIkpZGDfdvtkDQrvDC4uPsR3//+Y3oDb/+zdfYHuKnoYZbYIEpAY jY8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:content-transfer-encoding:references:in-reply-to:subject :cc:to:from:date; bh=TpZ+XTCmRSUK0FH7HxlY1n3auYAjW2LvyNipcYqwEfo=; fh=TcOiKNVhWZf4MmcjujBfMS1Y/8udEpTWFIM7N6uLV6M=; b=GrlswYX0OFsfq4MLox5F6ybzizQVoFDeLKRspUwbuySS1h2UILG6xCaLpdbcr7A2i/ DaY1TJOHoGQ0nxIHn53RkOzFmNvioEHyMnbYp867NuW1FuyI1M7HEjIVVbgpS+fO+QoS 7Szp+hmIYWwV9I7qZ5fySrZHJvbExPiNen6/8o5Z9dBZV73SOF1EHI2tRzrp+z063G4x B9XtVRn1fhHGbaeMu4HLTHk3DEmnXHawKj3VUKlY5OKYj1AH1UjJHDJZs3i8MPd5UWoY SVeASbwn4xos3/RgqWnO2x3SHq0SUqRFNbcUC69rVV3ZINqR7H26/QiNM2qkL/0/dwU+ Yy6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=eswincomputing.com); spf=pass (google.com: domain of linux-kernel+bounces-139965-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139965-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j1-20020a508a81000000b0056bf459125bsi472923edj.660.2024.04.11.00.26.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 00:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139965-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=eswincomputing.com); spf=pass (google.com: domain of linux-kernel+bounces-139965-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139965-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0FEF51F251DB for ; Thu, 11 Apr 2024 07:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9ADD13E042; Thu, 11 Apr 2024 07:26:20 +0000 (UTC) Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1C9513DDB3; Thu, 11 Apr 2024 07:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.97.181.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712820380; cv=none; b=UqPLdLE/R/ESCKM6Y7PwxG8vd+gu7xmblxjZ+fkSgzQ1Geggp+P88kWfjerGFPJay3XGwz+szW9R8Eu9DpwI/zEEILQGZl3EuUD1jnm6o4LPe1v3+llfira3zwMp/jjlfK5R0OSUtuAXkS+zVJylc2a2KH28zCOfQW8qX4tiqMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712820380; c=relaxed/simple; bh=TpZ+XTCmRSUK0FH7HxlY1n3auYAjW2LvyNipcYqwEfo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Content-Type: MIME-Version:Message-ID; b=Cbq3MR5D8lZ3dWkTZDHK8bLT+mKcTgOmQ483uIcHjq2X5WVc2GEkz86+NNZw1mXZkWx96nOGWTyS1dtGYUr3fKdm8+RyY6mTimRqYb28QZ3RvGOiJlMj8OCdSmLfZkdhwY/l6cArLYoaVdw0syrjN2vejGFdBLx+ZonIaD/QSkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com; spf=pass smtp.mailfrom=eswincomputing.com; arc=none smtp.client-ip=209.97.181.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=eswincomputing.com Received: from liangshenlin$eswincomputing.com ( [10.12.96.90] ) by ajax-webmail-app2 (Coremail) ; Thu, 11 Apr 2024 15:24:07 +0800 (GMT+08:00) Date: Thu, 11 Apr 2024 15:24:07 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Shenlin Liang" To: "Anup Patel" Cc: atishp@atishpatra.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 1/2] RISCV: KVM: add tracepoints for entry and exit events X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.3 build 20220420(169d3f8c) Copyright (c) 2002-2024 www.mailtech.cn mispb-72143050-eaf5-4703-89e0-86624513b4ce-eswincomputing.com In-Reply-To: References: <20240328031220.1287-1-liangshenlin@eswincomputing.com> <20240328031220.1287-2-liangshenlin@eswincomputing.com> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <66245675.2875.18ecc0add4b.Coremail.liangshenlin@eswincomputing.com> X-Coremail-Locale: zh_CN X-CM-TRANSID:TQJkCgAHGrwXkBdmkhMGAA--.3616W X-CM-SenderInfo: xold0whvkh0z1lq6v25zlqu0xpsx3x1qjou0bp/1tbiAQEEDGYWXM cgsAABsy X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxB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