Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3981882pxb; Fri, 11 Feb 2022 12:09:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbXdmKBV0dRj7sp1CJxgBOBJ8d0o0LhZHm6fkJoB7oXMb9Myl5/Itd4vaiel+Mi5WS9F96 X-Received: by 2002:a63:5103:: with SMTP id f3mr2694198pgb.174.1644610162597; Fri, 11 Feb 2022 12:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644610162; cv=none; d=google.com; s=arc-20160816; b=N8h0gDizUeDdopS3FmaWBwaJ/SzEuc0YNbtmf9m5HDci+uTMmpfl6q/66eljPTyYIR DLvTWGOPUnP7mbb1Zj6Hy9p4EMO7HovWiQxaWM6hirEBD0cY2snq5c6DC+jzIIqCsszN B0VJ1J2r62rj5B7VddojWeE47/foPqtnRt69/JZn3UdxGVAyv/k1FGzzQmpYL+gp7MQX rVG4LKP8lhvjBshtSOtoWLu3ykT53wK+Jm6CnH6EGhuWqEefF/safDlEM41/vs19W8Hs RFd89AatzbQGTAw20fxqetAUFFfKvRHWNi/tUHJgQRsSeeeTq8//l88rpV2cl+uOpwsZ CMVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=BGZZHtgbMYCP0jaczDNAE8LlMJy7n3ZrUNbIJwT187c=; b=BEMJB1ZrqL34dvWd0YOef8putc3nob0ZSwU9wJtqzkPjZ5GC6c6589OKZhOq2mTLHk CXAGejvNkFsty0aJTMBcoz7Dw0S5ii2i9Sgl7B1KWU/Ne/xZgj9YIKpq+Ok6xGFYCW84 PbJdiC/rPITN7qoIVM9TfCv4QvsC6k5XO+RL2wumUgTz9O4hR0tK0gxOajIFkdDbV7lP eEoNa93F43rzbHQBMCJ0semx8nPhD5c27Y5+qI9ittV8/+Z2+6fb8Li1avUYnGgjMlp9 e489//Qt3P1fEm1tNUCgezzuTvuvFWF4Q5HpwoFLqJEphcpcv3PxuJnzFcI3IBarTYY5 nB+A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16si13403654pfm.155.2022.02.11.12.09.08; Fri, 11 Feb 2022 12:09:22 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351550AbiBKQcc (ORCPT + 99 others); Fri, 11 Feb 2022 11:32:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348529AbiBKQc3 (ORCPT ); Fri, 11 Feb 2022 11:32:29 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95EA9CC9; Fri, 11 Feb 2022 08:32:28 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5D01B106F; Fri, 11 Feb 2022 08:32:28 -0800 (PST) Received: from [10.57.14.209] (unknown [10.57.14.209]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C9C0A3F70D; Fri, 11 Feb 2022 08:32:24 -0800 (PST) Subject: Re: [PATCH 2/2] perf arm-spe: Parse more SPE fields and store source To: Ali Saidi , leo.yan@linaro.org Cc: acme@kernel.org, alexander.shishkin@linux.intel.com, andrew.kilroy@arm.com, benh@kernel.crashing.org, james.clark@arm.com, john.garry@huawei.com, jolsa@redhat.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mark.rutland@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, will@kernel.org References: <20220128210245.4628-1-alisaidi@amazon.com> From: German Gomez Message-ID: <7eca7a1d-a5a2-2aab-b3cf-5d83cb8ccf4f@arm.com> Date: Fri, 11 Feb 2022 16:31:40 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220128210245.4628-1-alisaidi@amazon.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Ali, On 28/01/2022 21:02, Ali Saidi wrote: > Hi German, > > On 28/01/2022 19:20, German Gomez wrote: >> Hi Ali, >> >> [...] >>> }; >>> >>> enum arm_spe_op_type { >>> ARM_SPE_LD = 1 << 0, >>> ARM_SPE_ST = 1 << 1, >>> + ARM_SPE_LDST_EXCL = 1 << 2, >>> + ARM_SPE_LDST_ATOMIC = 1 << 3, >>> + ARM_SPE_LDST_ACQREL = 1 << 4, Wondering if we can store this in perf_sample->flags. The values are defined in "util/event.h" (PERF_IP_*). Maybe we can extend it to allow doing "sample->flags = PERF_LDST_FLAG_LD | PERF_LDST_FLAG_ATOMIC" and such. @Leo do you think that could work? >>> + ARM_SPE_BR = 1 << 5, >>> + ARM_SPE_BR_COND = 1 << 6, >>> + ARM_SPE_BR_IND = 1 << 7, Seems like we can store BR_COND in the existing "branch-miss" event (--itrace=b) with:   sample->flags = PERF_IP_FLAG_BRANCH;   sample->flags |= PERF_IP_FLAG_CONDITIONAL; and/or   sample->flags |= PERF_IP_FLAG_INDIRECT; PERF_IP_FLAG_INDIRECT doesn't exist yet but we can probably add it.