From patchwork Wed May 19 04:15:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 12266191 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.1 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 50DC7C433ED for ; Wed, 19 May 2021 04:18:00 +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 C221A6112F for ; Wed, 19 May 2021 04:17:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C221A6112F 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=5kY/SZ5q8jdrhYhSKr8hF/fOAFZkrZDV+jH+Z1wxKRU=; b=dtz378TegwE17D2azoESWsmiEN Sqdm5derOaSZHSOI9heSQHL1N0yiHkAmwRaSXZ+p+VPs5+jW2KkpkPK2eJ0R0umnthNhIhwfd+Fkx coAWRtU83gFyet+9oIy7ZS7/VSiC/tlc/WNztDFIYd6wXcw7ddq3LKFJVPr/0A/4gnKsTFICb+X1u NhsiLC+P7Pg4GpUNQ6u5/EYAzMiRRdjv76O0e6kvM97oQu7kF21fy1hH20dy7iFES7+xhodVvdh22 W3K2czr9TL3avMEan0hwjA8AC69OOeBxa7vKIrUmjSQNgCABNKC/DG/1fVuG2OR+Qf6l7WfEwnWc4 9wx6GdYg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljDcl-002has-Dv; Wed, 19 May 2021 04:15:59 +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 1ljDcj-002haZ-7Q for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 04:15:57 +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=8KlIx2h9yP5lu52R7H8yaLkI8C4WgX2JDrvEkj4ssOY=; b=CMsjbM47Cqh8OLbswGXusC4asD oJUhiGp7Tqh8s1Q224a1VZwytmM2Feq4WKp/sx4OOkvdW1385+I6MzMltX41rB6ZmqJii4PWfJxCk Dth/tlWbD2Pa0QB03fEE3hOmMTqdiNMfJL7sAK7PDWMQuJFfJQDFBR/pQk0PZDZlgI5qIWlsxHuWt vAa9LrUWE8XzRmMb0maWurpeIZHmNTU8SS+GxHAw2IUavoW92KL19jG0Zo7W4UnFmE8s9+OUvKvJo XLQ/iid3daMsBfIlHVX/8PFnF2CDLD4XaqXUE82S/wTj8+2vNPZcXZZ1rRspECdqiVSXyWusYnHCV hKgJHI2w==; Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljDcg-00F76q-JN for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 04:15:55 +0000 Received: by mail-pj1-x102d.google.com with SMTP id t11so6683733pjm.0 for ; Tue, 18 May 2021 21:15:54 -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=8KlIx2h9yP5lu52R7H8yaLkI8C4WgX2JDrvEkj4ssOY=; b=mhFRGQhblIWhwIIBvChprBSmli3LGqtGXscKQA0LyUxX+S8NgxhImXrSM0Z0vIwvgn BCzS1fASl+A6G1Ax+0gxtUjGbswxQHQjHhO7UtvTUXKW00qY4B8LRarU4IFTzEhRXe9t juyOeb8ggNJZRuAWU6+LmJc8GdvKecg0tbTqWuFHWWNeTHxBrsQf4h/hA3gn++suCJ4Y RO2lslmVQHmcDVK76wO03RofWzbB9Dko1qIVoq2qV1q52xljuJCvWPkXnG6815EQoy7h hhZYlEYvk8/S39E49x4V7V7k0IhuuWxRi+DAgPzFh4pebYa574GDEuTR4kJQ9wLzDYm/ Iw1g== 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=8KlIx2h9yP5lu52R7H8yaLkI8C4WgX2JDrvEkj4ssOY=; b=sUYnSH/qfK0XDcrr3AlpH1hD36+Azb29IcH31gk7jYSbW35XypyIieoceyuB0aSnZT ws7ig4JI3PNY1YaXwuzTx1wz4NKYfNsCqyowoAW6g0xD60vslPxqfs2xGeyBy6EqeVfE ZFkkMCTcE6eFKJ1CroVEq0CYXHLtZv0iAtKdhCAqptg9ghzMXI07soRlzptq1vtwIyMp msdPVlfVALYIgg5WED89z91cm1yPNhIiRwLDVcTAPp46tRwXJTVJOn/wHSjZ+E4eN5WQ RxwlLZTGpC5SwGwhOj98lGaTDQpa6u2pXMvbLbz3jAxPrEg6AVeiJ3tbgM77Sp85RPbm Ie2g== X-Gm-Message-State: AOAM5334l8fNeI4Peiv7yGBQlC+OGq32gb0H1eODYvnLeGo4IxBzXAxX zhadUdNIEiXKFzzl2SrTPxs+gA== X-Google-Smtp-Source: ABdhPJzUgy+j31LqGWq+8AtbM+zgRTuVzM7+bhTOYQ4DSsiEzvm1Tsp8QY3mb94aFCSqtcNDMFgM9Q== X-Received: by 2002:a17:902:b7ca:b029:f0:b0ea:db44 with SMTP id v10-20020a170902b7cab02900f0b0eadb44mr8477803plz.59.1621397753403; Tue, 18 May 2021 21:15:53 -0700 (PDT) Received: from localhost ([103.207.71.35]) by smtp.gmail.com with ESMTPSA id j189sm13434033pfd.21.2021.05.18.21.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 21:15:52 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , John Garry , Will Deacon , Mathieu Poirier , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Clark , Al Grant , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v2 0/4] perf arm-spe: Correct recording configurations Date: Wed, 19 May 2021 12:15:42 +0800 Message-Id: <20210519041546.1574961-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-20210518_211554_723752_2F3A5F94 X-CRM114-Status: GOOD ( 11.72 ) 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 James Clark found, there have several issues of recording configurations for Arm SPE. One main issue is the sample flags setting for Arm SPE event and dummy event, and there have two minor issues for enabling timestamp and redundant checking for "full_auxtrace". This series fixes these issues and has been tested on Arm64 Hisilicon D06 platform. Changes from v1: * Added patch 04/04 to remove redundant checking for "full_auxtrace" (James); * Added James Clark's Tested-by and Reviewed-by tags for patches 01-03. Leo Yan (4): 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 perf arm-spe: Remove redundant checking for "full_auxtrace" tools/perf/arch/arm64/util/arm-spe.c | 45 +++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 7 deletions(-)