Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1019987pxk; Fri, 18 Sep 2020 01:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuHuKBBDOD8cSqBeSCy8RDMsvzkgYBcYkwHzsKYKz13R3Yq+fjs+3SIBlGNikwocAVBzS2 X-Received: by 2002:a17:906:9245:: with SMTP id c5mr36952162ejx.54.1600417480347; Fri, 18 Sep 2020 01:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600417480; cv=none; d=google.com; s=arc-20160816; b=vPLAa3uwnMXT+5M83WTlQH8vtijFh0LiFzAVu5n0UgiODd/x+RlOY7mro55GKMlxj0 xV3A57l8Mu39wRkwocRNeMJPJIfzdc3a7F0C5X+LF+e/X1WMJTNjuyw/WBqqI7VsRv/z uhwKZCdfX99U+EzqN8WraIZIjWVEkaeY3Io3pyfMKNeW233E6y9c45UhkrIi7Ml5lr/O iqMGeccdU8ycIFmqDRxuW93RzoBreQrbZj12AtEQS8wGJzHc28VUUoJx0VktJCEa8VCw kVGKGRTcoImPrpMrieReGmB9+KVEuMi78Dpoff9B85fRMc9guhZvGiUx772sjvyh2oQ3 /Ctg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=q1qLeaxy0kHeaabbqPQgzeuc5PvMfxP51n7faPs7zr8=; b=xONNa3w5zHCUPAjNAKEYTTKvp7wg83TZQrihLai2nEnuDmlRlfemiH/oW9Kk2iXbc8 B9BOzEEIIjM+kGtGYAZbfl8F2NXjb5ukpTy1EN4kYv4/YzcAVKN5wk4Q0YT3Ozn/NsWF Vl39XBQledMDUsyN3icOw6N28hdzeJO0+UAT0Qiz6uYoCCYhoYXo4TYXTEKC7vMaOsaB oqMw7OcHVW2uR6U/iN87R6uvV9Vc+/73GadavIY0QumV0FLDwR2DS8xdSMCpKKQp4yqk LEJBBD/AjugjK9V9HVsV12vkmLpD9PYx8o4HCwmYGgIweZ8F1WKmqPDqZqSG2imTg8Qg c5vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bEUVJA28; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd22si2207844ejb.546.2020.09.18.01.24.16; Fri, 18 Sep 2020 01:24:40 -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=@kernel.org header.s=default header.b=bEUVJA28; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726253AbgIRIUk (ORCPT + 99 others); Fri, 18 Sep 2020 04:20:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:46602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgIRIUj (ORCPT ); Fri, 18 Sep 2020 04:20:39 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 276B720789; Fri, 18 Sep 2020 08:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600417239; bh=LeUVi8N0SXoGjKelLIuhUz/0LftupivSYLHHOImTsdw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bEUVJA28ZofZc6ZaTybGGXdfTKWgLhbCsy93Hbg9SRSz0Rm565ywR75PyCqWRuHwL Wqnspu+1xIhgp8l3Yb4XIOOVpceGVjx28EOV6FYM53ZSQ+26Rv+vSL9SAkc/FBevrE Mv0eWbylwHcI8M1woJoSg4RtW8YDYIgz5fWNnuHc= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kJBdF-00Cvpk-71; Fri, 18 Sep 2020 09:20:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 Sep 2020 09:20:37 +0100 From: Marc Zyngier To: Sergey Senozhatsky Cc: Leo Yan , 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 In-Reply-To: <20200918003219.GC3049@jagdpanzerIV.localdomain> References: <20200917003645.689665-1-sergey.senozhatsky@gmail.com> <20200917100950.GC12548@leoy-ThinkPad-X240s> <20200917101219.GD12548@leoy-ThinkPad-X240s> <652f10660f09bd608b825233713f775a@kernel.org> <20200917114231.GE12548@leoy-ThinkPad-X240s> <20200918003219.GC3049@jagdpanzerIV.localdomain> User-Agent: Roundcube Webmail/1.4.8 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: sergey.senozhatsky@gmail.com, leo.yan@linaro.org, acme@kernel.org, mark.rutland@arm.com, peterz@infradead.org, will@kernel.org, john.garry@huawei.com, mathieu.poirier@linaro.org, namhyung@kernel.org, suleiman@google.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-18 01:32, Sergey Senozhatsky wrote: > On (20/09/17 12:53), Marc Zyngier wrote: >> Feel free to add a *new* tracepoint instead. > > Wouldn't we want a whole bunch of new tracepoints in this case? Yes. I don't have a better solution as long as tracepoints are ABI. Get someone to sign-off on it, and I'll happily change them. > (almost all of the existing ones with the extra vcpu_id field). > Right now we have 3 types of events: > - events with no vcpu at all // nil > - events with vcpu_pc // "0x%016lx", __entry->vcpu_pc > - events with (void *)vcpu // "vcpu: %p", __entry->vcpu > > It might be helpful if we could filter out events by vcpu_id. > But this, basically, doubles the number of events in the ringbuffer. Only if you enable them both, right? You define new tracepoints that do whatever you need them to do (hopefully in a cross-architecture compliant way), and have perf to only use the new ones on arm64. How would that double the number of events in the buffer? M. -- Jazz is not dead. It just smells funny...