Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2268182pxb; Sun, 24 Apr 2022 09:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfJGiXN4pNR6fLoh+FLygVNwDhC7vHpcqSLYmRnqQxhBtqG8ayTGqkFqf7G7f99wAsD+L0 X-Received: by 2002:a63:8ac1:0:b0:3ab:199:cbdf with SMTP id y184-20020a638ac1000000b003ab0199cbdfmr5207069pgd.466.1650817635308; Sun, 24 Apr 2022 09:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650817635; cv=none; d=google.com; s=arc-20160816; b=VRp2ygANfvGR2HSbGFZvCkqZ4rxkBv9PCuQ0SNtTkPiv8cu/WZwS6mSIlE9qzq4jXp MnOBuQustAroHGRtSkfn6EZkbQbNRUNEI+IeJWF6y1Go0pW8GuFu5JQ7kW8KKPMoEMvx abWLiP+qEFDrfcj8UMtBU4o2djabIbCYEHekMQYcTecC493th+sNjvfja0dTfIJncQEq EX5+CJLkHo341zYzUtYK8dGH/E+PoDfEcH9lpv1BYA+krmM8ydE/ar/p/7m1hC7KNfME iX2GPJcRaPQCZImAbd6K9/RCFn+bmE+A2vlfKghsFokjPOHUk15PV4vCqOxizXmZVHrE lVgg== 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=Fr7QosuuW9SQrebSpuK4bC7h+uibB0pyqcA/ziRBKqg=; b=yX13Pa4gM12BiFY4gDBI3/FiaeQjXT5t2msfQIEyAabaAR3SBK1T41Gocy3OCDrjpI YnCGWQ/+in0fvvvEBDr/yS1UbrX/NY9vu4bwaugaxDHAUtQC+RPcPF/+8UOFSqC5opkn +hZXVifmshc7WYrpl6RnDIHqxo0ug6KAakS1izQh9IOOBQ3DLtMILZohAiGY9siJWxcO rAPC+ISqCKJTuJfXRg1NCkcFkvttTbexJi6m9jRgmjRvoIKQTnT/98KuVuD57Zgl3HCb 6Zh/OGhxahvfL/3Fj8HfGAO/zr/ZKlqKy7WKi1gxwTso0mj9u3qufJOa9g6yKjyz2pfj bnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wDqAK/aw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u36-20020a634724000000b003982527600dsi14493251pga.185.2022.04.24.09.26.59; Sun, 24 Apr 2022 09:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wDqAK/aw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbiDXMbp (ORCPT + 99 others); Sun, 24 Apr 2022 08:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbiDXMbn (ORCPT ); Sun, 24 Apr 2022 08:31:43 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1DEE15CF79 for ; Sun, 24 Apr 2022 05:28:39 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id y20so24686103eju.7 for ; Sun, 24 Apr 2022 05:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Fr7QosuuW9SQrebSpuK4bC7h+uibB0pyqcA/ziRBKqg=; b=wDqAK/awDKTxG86d2Hv/jTz4FeZaZUw01i76GmoeeKtCAf3h0SWhnrStgEtsscWK/Y xQ4IpplVwZJcJhfGWSGM0kfZd+r4Uiw/VJg4RjtDKi621u9T48Sk5LGSGq9IjfaLJ7pJ 3uyOLgg/xL5KV32TYjwNY2jKSHvg54GFxbLlaC/Y+7nE+U9lvvw5IF+Z7rWChZby7dCp eoY8fhdXkDmr/KopIV76f+kCk/fXd0SKbx7eoZdG1bvo96RprnWgAJ79LSGD5g1kduxm hiWs/M+d5iK6dE4wWqcWl/doSXRrJz7YIbhUSrHvOZ/hfYDBiVeyYrfgvJYbsgx+iU6Z fEDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Fr7QosuuW9SQrebSpuK4bC7h+uibB0pyqcA/ziRBKqg=; b=zMkFG9jZPnUAJHtAmHh18JtkS5kYAiRJJcdl84ktLwtYS2LUUDi6sBu4LczGXhfxux KnNmEGRs18ju7hyugp6nHkpoJ7CPEcRcfKMm10Lo+vz9Cp1TP11cMcj4iQcX/cioX8bh aReoO427x02JLS7BBv9IFnu+f645Uxnyk7dbQecr+vMb8aNPQJ/juzGIMFOZUqIwKFqU LUUSyteLEWMP/53wH75dMV97PMf6ytWQa5/mM6TJv7+mZ5WDwsETUsuXwSElPcqaqVKP d5XO0WDBGCzTgo8ZoDvZNq3Q4H9pryniFYTZb9z4n6IwFvGYf+a4eP0n+9RSrbygp3NX N3YQ== X-Gm-Message-State: AOAM531oA8cFOdluuEvKVtXle4hU1fwKs5Vo6tHUkr7dpPs5ME3zsiAB uX4HJlj4VnfWFquD7rYwQJFvLA== X-Received: by 2002:a17:906:7946:b0:6f0:12ee:4418 with SMTP id l6-20020a170906794600b006f012ee4418mr12110290ejo.156.1650803318166; Sun, 24 Apr 2022 05:28:38 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([104.245.96.34]) by smtp.gmail.com with ESMTPSA id jl28-20020a17090775dc00b006e05cdf3a95sm2578909ejc.163.2022.04.24.05.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 05:28:37 -0700 (PDT) Date: Sun, 24 Apr 2022 20:28:31 +0800 From: Leo Yan To: Timothy Hayes Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, John Garry , Will Deacon , Mathieu Poirier , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH 1/3] perf: arm-spe: Fix addresses of synthesized SPE events Message-ID: <20220424122831.GC978927@leoy-ThinkPad-X240s> References: <20220421165205.117662-1-timothy.hayes@arm.com> <20220421165205.117662-2-timothy.hayes@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421165205.117662-2-timothy.hayes@arm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 21, 2022 at 05:52:03PM +0100, Timothy Hayes wrote: > This patch corrects a bug whereby synthesized events from SPE > samples are missing virtual addresses. > > Signed-off-by: Timothy Hayes Reviewed-by: Leo Yan > --- > tools/perf/util/arm-spe.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/arm-spe.c b/tools/perf/util/arm-spe.c > index d2b64e3f588b..151cc38a171c 100644 > --- a/tools/perf/util/arm-spe.c > +++ b/tools/perf/util/arm-spe.c > @@ -1036,7 +1036,7 @@ arm_spe_synth_events(struct arm_spe *spe, struct perf_session *session) > attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; > attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | > PERF_SAMPLE_PERIOD | PERF_SAMPLE_DATA_SRC | > - PERF_SAMPLE_WEIGHT; > + PERF_SAMPLE_WEIGHT | PERF_SAMPLE_ADDR; > if (spe->timeless_decoding) > attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; > else > -- > 2.25.1 >