From patchwork Thu Apr 29 15:00:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 12231441 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F26B9C433ED for ; Thu, 29 Apr 2021 15:03:01 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5CD596143B for ; Thu, 29 Apr 2021 15:03:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CD596143B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zVvnBc1+QoM8liDIhRBqYbt1xfmY1+pR9Fo965LqEq4=; b=qXt07wLy9mlh7O3r07YaGguP6E IHWP8wxCAW0UukIyr7ImOq2fWSUCNURLcAkhDdD6mGKk0p7yRAZ9Sf6J/okdI+fkA+U5fgMjVae+u vtDZsh/OE8KtB6mi2UKGn4SS8oVeZyzLgVMnVJvyfgKObo+52aqdBHx9T6IM0cyrokcycorwmRAbK lcsbvHCSVUhLLKuG3wUWCstzw00P8t9cR+EtK1A+Bpr/TVtbFD9wy2r8eyNuRN2d/SXSnTbjNeWTI NfJeSLC3MSJaTtpShwNoDn0qQ/nCAfAm2BKXBKs45vuQntG0IrV7xHObJVBnCMGTqMlSfGEEMMWzv iohIMmVw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lc8AE-005sW4-Um; Thu, 29 Apr 2021 15:01:15 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lc8AC-005sVr-GU for linux-arm-kernel@desiato.infradead.org; Thu, 29 Apr 2021 15:01:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=/1TsN7V8vdFFa1jTdLAYOQAqYvkzTRY5XtBlHiV+cWU=; b=xtp8JKN1kb6gzZi6Assp/dGwd8 nsJtH/8J9i3YYyEN3DRK36U46wmpvdjT1XoIGeJ/od5FyVhhMXVxf0JMIuz+tbpKC3l3dFeyBRJAv 8imbXnzljTF2lwyDHv+NC+bm/hDIzMkDcwWMz7kWRsJ2Fg2mWpfKlzhCtRR2+TEirWP6gLr3tuY9a i9THy1Txab2kOjoSib6C9YqKFkskhyQikj4eB7tcIIzbQX2lgZ5lX9vKo5GsdwIsBayUD/8ldkIWb /6lTY3NMMP9FWxGSgL4t6nGmnPpkeCFHd8PRHppP2Ru/ivzIOMZR/BXZipT/qzU4fMHe0msUXx2FA rYJods7A==; Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lc8AA-000i2F-0G for linux-arm-kernel@lists.infradead.org; Thu, 29 Apr 2021 15:01:11 +0000 Received: by mail-pj1-x1034.google.com with SMTP id f6-20020a17090a6546b029015088cf4a1eso11100657pjs.2 for ; Thu, 29 Apr 2021 08:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/1TsN7V8vdFFa1jTdLAYOQAqYvkzTRY5XtBlHiV+cWU=; b=OrUOtDRiPFLfD20p+bsQFI4BkYU4RCJ0c1Hbr7SmtJenqHtLp7g8tJbqorziZy0xeb 8+uyZtpdqKRJsXiD0yMwgD10J1SbvsvfG2rHmyIiLxn/sIc/XDOZWraLxtgyzRp5MAtr AYtv+rN4o/CyYi8oW3tRklBfT4Ko25jC0a6+2c3fCewXSBqtxgLUjgPpyJ8zFLwyHkkE aJGSGJp3CjOdACeERUpXzrIWIXqeKbzkASQagVA0pIO3SnsuRJUUrZDR+dScQOuCH5nG SB9h1cQ4ALp+dEggZ9y8GL7aJcmM8LI0Q0Z15MGdxA6W80a1DVuKMiUX/tzmGeVhWNp0 nEug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/1TsN7V8vdFFa1jTdLAYOQAqYvkzTRY5XtBlHiV+cWU=; b=DIFSa/8ozk2k7MbretEqd+tYet81qMDZWOMMH9vU26uYsXiLeMDfE9r0WmH1pQZn9N SOmCTwL58CJSbdgt1LZqIki1+Ad96l/qoUUrT602AmnqkBfNjN0QJNKjQYF9QoSBW6Bl 5YRZiRotfKLNFkDbpJZE4ggsGrhPodLn7Uev6wtNcDupx83q5bl776ekpIxUls6g627r 47EXiZ2FxWlbaye8GOD/z2oKRf23t2GQ3I+qlR0/P1/KFw7zaq2D3sGxlH+OsOfCgmse KAZWXeNXcaIOT7cF0+bSk7B44p31ztADrS9tZvigcECjxVck3CrYN9hM8wVnhGY+7lel mw9w== X-Gm-Message-State: AOAM531k+P44KV0iKJ2jtUfETYGtLwxfoD2aVOp9nwLX2hgzf1ZhYIVw Kp5nwcUGOBe7sw1KCuTVccOGUg== X-Google-Smtp-Source: ABdhPJxSiXD7UkDhOrm0EG11H5sFBhdp1XFkfb6BqLhe+JOtDRSW96tjLpSQcIIjS143Faad/4Ap/Q== X-Received: by 2002:a17:90a:430e:: with SMTP id q14mr10132243pjg.189.1619708468109; Thu, 29 Apr 2021 08:01:08 -0700 (PDT) Received: from localhost ([204.124.180.30]) by smtp.gmail.com with ESMTPSA id z12sm2580223pfn.195.2021.04.29.08.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 08:01:07 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , James Clark , John Garry , Will Deacon , Mathieu Poirier , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Al Grant Cc: Leo Yan Subject: [PATCH v1 0/3] perf arm-spe: Correct recording configurations Date: Thu, 29 Apr 2021 23:00:57 +0800 Message-Id: <20210429150100.282180-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210429_080110_097116_1118120F X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series is to correct Arm SPE recording configurations. As found by James Clark, it's not reasonable for the current code for sample flags CPU/TIME/TID which are hard coded. For TIME sample flag, since it's always enabled, then Arm SPE has no chance for timeless tracing; for CPU sample flag, it's not needed for per-thread mode; for TID sample flag, it's redundant for AUX and dummy events. This series corrects the sample flags setting, and it enables timestamp for per-cpu mode tracing by default. This patch set has been tested on Arm64 Hisilicon D06 platform. Leo Yan (3): perf arm-spe: Correct sample flags for SPE event perf arm-spe: Correct sample flags for dummy event perf arm-spe: Enable timestamp for per-cpu mode tools/perf/arch/arm64/util/arm-spe.c | 66 +++++++++++++++++++++------- 1 file changed, 50 insertions(+), 16 deletions(-)