Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp247052lqe; Wed, 10 Apr 2024 00:13:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFAmPnVChBGLMeFez/CpkCtA4bXfCXMM7TdTf6Jb0hrXmGUhjN6jwsnIRYwosDIj7cule/4fH9+1pC6INlM5nfZ4tdnNCSqslCNm1WPA== X-Google-Smtp-Source: AGHT+IFE6CfiP0teKF7r5pr5OZCf/Dyfh1FRRXQW9M1QNA9l+XaKCqyudVLKiooEWXZnR6A0Kdq4 X-Received: by 2002:a05:620a:2697:b0:78d:692a:9dfe with SMTP id c23-20020a05620a269700b0078d692a9dfemr7487326qkp.28.1712733192899; Wed, 10 Apr 2024 00:13:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712733192; cv=pass; d=google.com; s=arc-20160816; b=VIRYlkDWRoLC9oBgsW1uo8QEmnIW+FMN7itrBmvG0olM1FtSU0mVjfiWH2GzZOYsgl Q0M/UlbRliVI9VGv4Q66O7FHKgeS3GspFWGIQpYa2kDsRFJeb2RHAyUlmiFnT50Hn2iF 11XqWSHJ+rgBtGpB4vX1Vi7IcDgZi5chQVEUX7++bUlQRkXF19M5IIMduyvoH69wpCPK ymayAG2czGRzVeFKyxn7UnKZKyaPfVxxtiKZIskRGwOIEJfDGhTq6iWP82xPJC1oe3h+ ze1a9YTQ539wyGv1yctoNjJbTMpShghZNJKCVPgHgnSWrwzfy38hhbjMui3ROli4bVWV vM1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=v8Z0HpTMm7JW0HfSi1migXbtT3L5ZfuOmq81pu08fxY=; fh=aGiRs/J2DN6FdpigCLhItpBiKTDdM/slj4lMBx7beJU=; b=cqFNta3IVJhUKoYA5uS2L86B2Ju1QtSHuTTdTzYe0eysNB+s1NxXCXURTo4852FSUl JkF8wQDR8ohnfPwR6T52lI5SGW0TCM1xAH0TvGcMeNs6sB/ZW75lPTXdqFUJJRv3Nltj Q9PjnuJ1risq34yxcVMEJllfK0JZcDv1wiVG/bIQ/xzICCDkNHAst65J3NQO6kXWIMKO yM8c0P8HihLDEtf5+Bzj+zFVLB2bjVl7eT+jRQ0z9XWaTIzmwLGWNOXCFb1ZxNsN237O 6XWfZSTwCzr406JntjGnFX2LNL5OiSFlH3Qag2lOWUHIhXCFoz9hymn84n5FrP7jLJHe sK4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VRJxY7p5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-138050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y11-20020a05620a44cb00b0078da0985209si832853qkp.485.2024.04.10.00.13.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 00:13:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VRJxY7p5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-138050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9EFE31C21341 for ; Wed, 10 Apr 2024 07:13:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0F8A13C91D; Wed, 10 Apr 2024 07:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VRJxY7p5" Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B53C013AD30; Wed, 10 Apr 2024 07:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712733182; cv=none; b=RBvhLExSv97S1uEKG5bXAm1uEcL/ZXkJ//5wcVCm2trC2Iwy5mT1WiNh7sSL9fxVw+vTkeVhha/Dbf9saxtsaqtF6JRGn8HJsMI0IEDU+z/9OYWNTFGmzF+ZRFi82llc07tx3N2fJpGZIwWXALb2WVCxRfuldjbajlzKLypbAsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712733182; c=relaxed/simple; bh=2xuaVJiYV98yQZyJqCo8wDjLB4OZ8dHeBSX32T6poTs=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=b3Io/0pJZiu5FGeCI2rXF9sya/Zuz1/yIGn0/LEwFUv0yQUUkiJf9A9pa7ZvGiEnw8w8iLby85z8VqnFk/YP0UDGCm0ewM0kG/KWIVvvTANgbZ4WbNAIgaYZ3ce+p/xC5yath1ZCIe7oScwagtfBRRp2THqFHX6MJwDEerddQnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VRJxY7p5; arc=none smtp.client-ip=209.85.214.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f195.google.com with SMTP id d9443c01a7336-1e4c4fb6af3so6601905ad.0; Wed, 10 Apr 2024 00:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712733180; x=1713337980; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=v8Z0HpTMm7JW0HfSi1migXbtT3L5ZfuOmq81pu08fxY=; b=VRJxY7p5egdlDZm/rODV84LBK9rf1qTTfDxSAScpwgvnvqQorofUcgFZD+EjwqXxxb CEi+4kLzryoo3mWJz14UfoWUXko7bF7FSebmu36wk0dFXJkTTNQTYCCyup5kdf8hhqj2 J2plN8SuPPMHaFt0jWIyGYHnfFmUNB5k/X6PdPhvYzWXKPl5VKuG6r6+1wB+3PfCQJ78 snoKKCt+clqBxy223cRzcwFIgPXtHDDfD1M9txjD9QBjlEhYUM9WHSO+h+E1nMv9pA7h aBPd4qQomXW3cFHduf74VQyVmPTv6JveKRrn83TAYO0GOKQ5ZvieESUidI1vO86uQ4SL O9Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712733180; x=1713337980; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v8Z0HpTMm7JW0HfSi1migXbtT3L5ZfuOmq81pu08fxY=; b=McLksPKrtnmMw3Yh7+v+gVGOsLS+Hg6tVyrv9/aFbAhTohoiZ6gT4vXuXkiJA3AIMK HGK/e+kTKZlLna62Wuro9GivswzpVbgB665davjFvl0VmiDMvayV3x/oEK0WawEVE9k5 D8pwStAwDZw2M5PrX4o5jtEpgbdGBS2RTEgkZQPRk5MoCFEobYiKnQwXZYGTrgim8mQ9 JyDZFu+yKsVoULLzZ5/57YtR9GGY2M557P0h13i7USCKx5xymqx+ojlBdmpgbZfSw4bW r9EId3ETqExrN1T+WFNs2Hcn3BS9EXmc5vmIK2k4FfG65fxc9KzfNrYA4hkh3rz/o76x VebA== X-Forwarded-Encrypted: i=1; AJvYcCVJZ8f8CMKZj3bfe/F7rWp9lcgLVZX6rVjYevKg9zyOjGFPzpyMeDqvRfLKpW7xJK8s4n4b/pVVHe4sfWbghIZEsvk7FvLyLyFXmj9OFdAnrbUGomiR2ezi9W4ZIfeGpykSsWlPnkl3NJOVAOHzNl29qJqVGMAP9gmwve5oqbaJ4iYu4A== X-Gm-Message-State: AOJu0YyOEMBRB1S+Lf5G+1RwistUNYinSS9nR6LzcrNkysaBhjzyBptq KzDDQ+1K5Co3O8GUzSiMZstiXkEyST5gepir8s8Ubuqoml/ZugoT X-Received: by 2002:a17:903:a8c:b0:1e4:3c7f:c179 with SMTP id mo12-20020a1709030a8c00b001e43c7fc179mr5797235plb.12.1712733179945; Wed, 10 Apr 2024 00:12:59 -0700 (PDT) Received: from [172.27.224.145] (ec2-16-163-40-128.ap-east-1.compute.amazonaws.com. [16.163.40.128]) by smtp.gmail.com with ESMTPSA id v12-20020a170902f0cc00b001e002673fddsm10100548pla.194.2024.04.10.00.12.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 00:12:59 -0700 (PDT) Message-ID: <40a8d9d3-20a8-44e8-96d2-0dcd8627cfc8@gmail.com> Date: Wed, 10 Apr 2024 15:12:52 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] RISCV: KVM: add tracepoints for entry and exit events To: Shenlin Liang , anup@brainfault.org, 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 References: <20240328031220.1287-1-liangshenlin@eswincomputing.com> <20240328031220.1287-2-liangshenlin@eswincomputing.com> Content-Language: en-US From: Eric Cheng In-Reply-To: <20240328031220.1287-2-liangshenlin@eswincomputing.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/28/2024 11:12 AM, Shenlin Liang wrote: > Like other architectures, RISCV KVM also needs to add these event > tracepoints to count the number of times kvm guest entry/exit. > > Signed-off-by: Shenlin Liang > --- > arch/riscv/kvm/trace_riscv.h | 60 ++++++++++++++++++++++++++++++++++++ Conventionally, it should be named to trace.h, especially if only one. Refer to other arch's.