Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp279990pxk; Thu, 17 Sep 2020 02:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZtPotLstZntnWrR8Z8g9VTKGewQZljNJaLmsZDGrLAp0Kqp75oJLQFewqYtRp5RnfdSQb X-Received: by 2002:a17:906:1e11:: with SMTP id g17mr28255029ejj.298.1600336594564; Thu, 17 Sep 2020 02:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600336594; cv=none; d=google.com; s=arc-20160816; b=rdfYL1xj9oP1J6/tvN+6WObuJQ+hni+MdQLWSCBLZRkWj5K81pyHXbk9k8N7ooZUdu qJdE1o4mXTS+Q7WfVCJjUoGOasBiJUeCHTmkh2w2ggnznVKxJv5Kg2AnsEXuRKpfqXQF JeFceUSKXub1quMtIe81QzXLDJngAIFjKe4dyS1uj0Rw9IeKZfoK0Fr9/ZsIKfA06535 sVRnBTCS9lcqVB8OP6kzppE+UeOBnOI3GBJnePHIaZ3tUnPHE9RduTaLsEdQz5IN/gbr npJVYVttzyd+nfpUpVAgPOXAu5m9U9tQESa/4gyqERgx42An29TB+o2YbxzvD5O1QTb7 ylyg== 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=PJlBiIeS5Wdy2999YEJLifVI7R/wk8pty4fRR2lBgRs=; b=NLMcCXCU6DEVEi06SkLPgfZiDo0/KS6cM+T8+O7j9IFqVQX5+xH57uIFXOBGBj/+21 SqlXIZ1wVF2qgMSlYDHmblvlgu+TqDA/P3YHEFhvcTGbO2Fqnc2thp9DstcoECq2wojk +XyVQU3fso6Yr4a5ydGxuWxTGvDrc0RvdxdCIitvJgS4wckR0Sy+/TqeTnM1VhERBtSB UbCW6UDv30OoX8tpz3CwnapM1/hRZMARKJpO/yOCPs7sP6hVVrtbynl14FipJ8oESsyK aqOf5dIHKTKAJrIxw/5QrFd/3c/VA8i3WTLiRRhpL8jQeCtwjANJj6lxguE7E9S9gMZI kVgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G5eUcMix; 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 md20si13740766ejb.439.2020.09.17.02.56.11; Thu, 17 Sep 2020 02:56:34 -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=G5eUcMix; 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 S1726478AbgIQJyz (ORCPT + 99 others); Thu, 17 Sep 2020 05:54:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbgIQJyz (ORCPT ); Thu, 17 Sep 2020 05:54:55 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA245C06174A for ; Thu, 17 Sep 2020 02:54:54 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id j7so839271plk.11 for ; Thu, 17 Sep 2020 02:54:54 -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=PJlBiIeS5Wdy2999YEJLifVI7R/wk8pty4fRR2lBgRs=; b=G5eUcMixy97pPQRUaJlNCnHmF1P60hPgz2mFAP2BIXDpYT4BtxuJZ5UPzi8yFOlFNE Dz8ouauaaFmcaB3SHVoxU/TaIi829YIaHyMBX31XgvQkQNFCpYA0+wooNtQNBiGkpKRZ jqJKXZE5if2AYb+oKIBZfs1Bs0KgrkaKWGK+9uzU9wRYYl7rGNIGrUzX6hKpcLMqY9/X BcYB7f0hMmHpqlmGlJm+XV4oL3DwqPocu2PAVBrBchDHKLJXnpen7XzWFlGSMlt2symy 4bOcvaUGowUIwKl3vcp2csFrTzXrxIsuhieHLrOh3vbfVbhAnWwJ1C3qYxbvE1cFnXdK i/4A== 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=PJlBiIeS5Wdy2999YEJLifVI7R/wk8pty4fRR2lBgRs=; b=hj0Y05YV54mwrupRwxsfhgS+25yJ3KQ+CjOytI5lHA64n/mBVlzOvEIoZebJMy9h13 oZVVhDkl8WRh2TzOIYBP4lZZMHgrW8OfFSFT5VgPIJ6c0E6mlyMqtQYjLM8DQxYYJs7W g/pre7ZNvVhZgxYvde6xArzyBuKYmuxGa4xImbF2aGpZTAyBi01vVsaBPyDjKLrixETt 7WNbwzh5At3SqtZmBuoNmLXszlSxtzPNZmVMQlUyY2h/UYX/nLNwdfYhpbL3h2aiBjfL j7Zk2DkyJXTSSCiAi9bu6aKpewWVWdtgXvbwprs0CEOad/8UMUul3EkM+AqymtIDSe0A AunQ== X-Gm-Message-State: AOAM533+FwMphs5it+6J20TzJaLir3yb/g6dLUZ5Bfj06wHi961+WQDI Av8Hcim+roNRR/QVtPQQPi4= X-Received: by 2002:a17:90b:891:: with SMTP id bj17mr4239804pjb.11.1600336494426; Thu, 17 Sep 2020 02:54:54 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id c20sm5411643pfc.209.2020.09.17.02.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 02:54:53 -0700 (PDT) Date: Thu, 17 Sep 2020 18:54:50 +0900 From: Sergey Senozhatsky To: Leo Yan 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: <20200917095450.GA3049@jagdpanzerIV.localdomain> References: <20200917003645.689665-1-sergey.senozhatsky@gmail.com> <20200917084744.GB12548@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917084744.GB12548@leoy-ThinkPad-X240s> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/09/17 16:47), Leo Yan wrote: [..] > > +static void event_get_key(struct evsel *evsel, > > + struct perf_sample *sample, > > + struct event_key *key) > > +{ > > + key->info = 0; > > + key->key = perf_evsel__intval(evsel, sample, kvm_exit_reason); > > Now the perf/core branch doesn't have API perf_evsel__intval(), and it > has been replaced with evsel__intval(); so please > > s/perf_evsel__intval/evsel__intval ACK. The kernel I'm using still have perf_evsel__intval(). > > + if (key->key == ARM_EXCEPTION_TRAP) { > > + key->key = perf_evsel__intval(evsel, sample, > > Ditto. ACK. Sorry about that. > Otherwise, this patch is good for me and I have tested this patch with > below commands: > > $ perf kvm stat record > $ perf kvm stat report "perf kvm stat live" should also work. > Reviewed-by: Leo Yan > Tested-by: Leo Yan Thanks! -ss