From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44ED8C433E2 for ; Thu, 17 Sep 2020 11:02:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E3BDB2074B for ; Thu, 17 Sep 2020 11:02:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AoAjhzJU"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lnwc//+z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3BDB2074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qn2HjBg23Rt8DS/A3ObFXp8FglNTvSeDm6HwM5qOzzw=; b=AoAjhzJU8xcpNPgQB5X4yiTBC u/trDT7SGc/EcZ915DSesBtkW/nvrGyaiZlYPEhpWZYt+mlhA4GNhpVpKA4i2QDA6D63KIYTedzTL 7vOVWsD2wpqeDjjeYtlw/AOxhq3QiWJ+6CYYsVf9/+A8MPtMy/Z8jjQUbPbsBbHIGx4yG/b90s2F/ 1CebLW6UeYjly5lOjE/1a0YWan5R6IKf7bAP2dfrd3CpyZBMf/Liw+pPtkaMsSHX3yLRoWscX4nY+ TGcpNh8yLC3ym3q2tyhbfDjHkGxyFqnSqSHwzYPdtYQ7o3hV31bx6ieJ1MhSWcGT/7gc2+Yk33Yg4 qvPRvEZgQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIreY-0002mD-NT; Thu, 17 Sep 2020 11:00:38 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIreV-0002l9-U3 for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 11:00:36 +0000 Received: by mail-pf1-x443.google.com with SMTP id k13so473096pfg.1 for ; Thu, 17 Sep 2020 04:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=HgzwSyCKKLf4qD/4NKqd5WMkMMq1Xoo1+QGWfkY+Z8k=; b=Lnwc//+zYgv01F6ATSNmEBvPwfpGzZYhXCnL3LnezmqnG/MEc0ilUAWqhoMcVD7OkQ j5qvk9ABadIZpl9+J5ebm35H97iBADCAuWuccrYn7sVScfqv5boA3XoiKC5w5NBgmaIz i+SkiayNw2NzxZ2aQHiJ9dTPWPwexo6rnbIbA5hmXG1wsWUbZOman/x4SKgqE+6wHaAF 1GVsRZUY9co3S77thjgiGEJHWIBK2X10qXOdb5dBss0Lb0n3QGb/PrDJjxK8JyxLNLhX Yvq9F2SMxKAr9qh5/Pxq2LFMQyuRlK+ExIo3AoY+F3SZ5R8VqCdIdYq6jIwmOFr4+vJA I39w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HgzwSyCKKLf4qD/4NKqd5WMkMMq1Xoo1+QGWfkY+Z8k=; b=qHyUjCb53RYrA5XX4t/TFNGbkSyRNQz8DLjU1Nye7LWvBZrCvoGXMo1HK6zbllI1Mu +W/Du98c05plkOMGb0nASEfGGBb6v5Wn9ezNFvj1iVZa4SYCCwuS/vLTEA1hnAAhyWnB Y96kDru7UvCsopKkmCk5xZMmz4wicFXeQ5SqYnKkWl+72EYxsdmvuiD9OHdTcylMH2kb 2FV+tNII044tju6qG2aazVdnhlOOKVKkYHYAti80U0lRL7GfjsFlkt4fBeaikm9SLEu9 DFReSn087eae/yFYjThZixsVgPwNSR7itHav2mg8A4YsF7Z/UnzO+N0TMcDfCOgeWMJK Ho4g== X-Gm-Message-State: AOAM530YHgi7vav/fcHQbaoc7km8xBptpZbvQedJAlKZTQR3sLAfwlkM I7X/d7icWRZ0xHY1jkK2Zuc= X-Google-Smtp-Source: ABdhPJwRA/dhSuBajZpU2if3GKD//1RBOuQmfoaAL0Fd6dQpgD+slpeeyVZSkcdxTKvYCWZWSQ7DEw== X-Received: by 2002:a63:6fc6:: with SMTP id k189mr21465070pgc.165.1600340432684; Thu, 17 Sep 2020 04:00:32 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id m188sm21160330pfd.56.2020.09.17.04.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 04:00:31 -0700 (PDT) Date: Thu, 17 Sep 2020 20:00:28 +0900 From: Sergey Senozhatsky To: Leo Yan , Marc Zyngier Subject: Re: [PATCHv3] perf kvm: add kvm-stat for arm64 Message-ID: <20200917110028.GB3049@jagdpanzerIV.localdomain> References: <20200917003645.689665-1-sergey.senozhatsky@gmail.com> <20200917100950.GC12548@leoy-ThinkPad-X240s> <20200917101219.GD12548@leoy-ThinkPad-X240s> <652f10660f09bd608b825233713f775a@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <652f10660f09bd608b825233713f775a@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200917_070036_005598_49FDA42D X-CRM114-Status: GOOD ( 13.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Mathieu Poirier , Peter Zijlstra , John Garry , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Sergey Senozhatsky , Suleiman Souhlal , Namhyung Kim , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On (20/09/17 11:21), Marc Zyngier wrote: > > > On Arm64, ftrace tracepoint "kvm_entry" doesn't contain the field "id" > > > or field "vcpu_id", thus it always reads out the "id" is 0 and it is Right, Leo, I saw that. I put "id", because there is ... well, there is nothing we can put there. The trace points on arm64, unlike on s390 or x86, don't contain info which can let us map trace-event to vcpu_id (even (void *)vcpu would have been rather helpful). > > > Essentially, this issue is caused by different archs using different > > > format for ftrace event "kvm_entry", on x86 it contains feild > > > "vcpu_id" but arm64 only just records "vcpu_pc". Exactly. I wish trace-points were less of pain-points. So 'perf kvm stat' on arm64 works, but it's not as feature rich as on other platforms; at the same it's better than nothing, I suppose. -ss _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel