Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp320029pxk; Thu, 17 Sep 2020 04:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAEvWmllKcfdznUp9cbG8FpkZU1XZ5dj8AcpvdRhKx4pTzGPg1b7ZYQF4SvC9/hRVWcT1j X-Received: by 2002:a17:906:4093:: with SMTP id u19mr30536636ejj.520.1600340826242; Thu, 17 Sep 2020 04:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600340826; cv=none; d=google.com; s=arc-20160816; b=jNqVF9zWba6PoimLEKiHVZRIpsAlEp9ZMF5NT70Z70QnesQlxW2aA+RzGzRQmA+ZBx TCy2Wks8rqnsAEtZoq31b4oLS8TV9UBr7WWMjiWO06WeSjGnOLO5aDNJmT95c2kEbsiZ nVX4xkqTYU93e4njHNKiu8pn95m4xlufTE6CVt6Qh/hbYwPFyjxhlQY9xPakfe2nkwu5 LO4BfUTo/bW1zLCdph4xlbpuewt6lT24ZxrrHjGTHWI0CuR0Wiqh+a9ER5mRi7ZaTmBM Br60T5OqziayLVOrkJ+vri/gYi6HMfttwhMRsB/mdfM05hIDowXsEoBRsXgQzli+5WDl 154w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HgzwSyCKKLf4qD/4NKqd5WMkMMq1Xoo1+QGWfkY+Z8k=; b=L1p7mV+JUTRJ6DJK2L90j8znjuA2Fle2iLQKemDjI4Ybww4NOHZ+RXZ7quhncMQJfO doeGczI+oJLEuDsmKExdaFNJHFS5MsEDORusAvvdwF+EulnUx87PBKC5y5Jhq25+IGti nZuGYZTcIRcmYsW6XRwG5pPMbQacIo2C8WkGE/JNB0PQWR8xu6d8KOAynt7gCpAMZE6p 2TqwD1s3AJPIEcnad0+nnfyB8D5stWGL3oKX8KSx7YoAtDq6rRjCSuDBgh9fy1W1hizN oF6wHxhzBqZP/qUA25NXpclAJFkua9PLX0Gp3tvbbPvqDiI/VvmJxqGZzitY7Gba8waj vBSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Lnwc//+z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm14si14438211edb.346.2020.09.17.04.06.39; Thu, 17 Sep 2020 04:07:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Lnwc//+z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbgIQLD6 (ORCPT + 99 others); Thu, 17 Sep 2020 07:03:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726380AbgIQLAk (ORCPT ); Thu, 17 Sep 2020 07:00:40 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEC58C06174A for ; Thu, 17 Sep 2020 04:00:33 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id d9so993055pfd.3 for ; Thu, 17 Sep 2020 04:00:33 -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=F+hndVkvek2CRK3LvRGayuYll7JsvG0TL7nJvwe7ElgqpLlUH0Swm5E9uWlcAeEZg/ NtWFP4lWMhjia6xR0xVSPis6FcxH0/odFnPuN4Iw2XzRRDA0uyTzHlSo6lSB5ZF57aB4 x9xGXiGkG4h+M8UgKmta1B57Q7SKCPI86PqAum17XyxevbuXTaBQ5hY8pNIfUlnxjfJO /U//F35hb40+zvn+aTfIbtUziSfWoQXxq/ph+bptSdNsl+jfMWCqxufyYHFKZCkpfVpH fcRWFSIYwdFB5RbPAcwRBG3EMnxLHktNwd+dIutY1Qpt+OXLf5c7jZiedDCaiRgFI8f9 HsYQ== X-Gm-Message-State: AOAM531XtmDK5X8pkY6kb2ZXCOvU+sAfk4DbRIyHlUN0FBaItxLJP/5J qWGRbncdGzoN6BAhNlREwtA= 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 Cc: Sergey Senozhatsky , Arnaldo Carvalho de Melo , Mark Rutland , Peter Zijlstra , Will Deacon , John Garry , Mathieu Poirier , Namhyung Kim , Suleiman Souhlal , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <652f10660f09bd608b825233713f775a@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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