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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,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 75E2DC5517A for ; Tue, 10 Nov 2020 06:23:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3017921D40 for ; Tue, 10 Nov 2020 06:23:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="l4OBvo/A" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730857AbgKJGXb (ORCPT ); Tue, 10 Nov 2020 01:23:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730398AbgKJGXa (ORCPT ); Tue, 10 Nov 2020 01:23:30 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1204CC0613CF for ; Mon, 9 Nov 2020 22:23:29 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id e21so9267117pgr.11 for ; Mon, 09 Nov 2020 22:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=y1x0mATAfMh0RgOZpG1Vhgavz1aahfCajrpAeC6qJxM=; b=l4OBvo/A+6U/Ibi4nNicHUWvlD3zzTlsyr/vEp59ySOYlxafdsQu/sWAKDVfQwwncb UQRc6gE9L0tHad1dICQAwkOTBqHnDr96vDIfYRHQSAW4dgRTNAlWBmaqfymva8ww/UfU R0xrMfqKQj50EGx2CBaDnNwrYFEGDrPrPnYvJInWBIVAdshpn+JwKeVVcj6LjWByzSoQ aVnRfTkug55BvXJJo6dRcI1Sa2DG74KdkOU67pwLhU4cgkTsN/qxCtX01zlDjyckWZFC EGt4n+4BF0woKUQTA7KyrnEaGXa02gx/mLbWsdFXb3Ee09M6CqkZZI4hcEfRq6U9A0J6 u5MA== 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:in-reply-to :references; bh=y1x0mATAfMh0RgOZpG1Vhgavz1aahfCajrpAeC6qJxM=; b=rxQwO0g0bz+26KXkyN4xfhilhokqMp4CbZ/XPXhs+SoEyASlx012OG5qvWjEthBUbD 5DLH8Mg9kEw49K1oy9/yYS60f33ea0mdsEudqLKfOxZp7Kn8UP5ICldbcLxaVZRwGSQ8 OYNjX5mu4zGL1KUlJ+oc78R/RPjxAvMPkHhQxwgF+rhZg3JIMp8aaMNcifcH/m077Jvw fGgtc0/psWD6+GoLlYxituq8v2/U6b+unGSlTGhVWPxrDrGXhknVuHAx5/n7TrC19Kq9 YFU4BKWG+qFX9SLllo2zYSKFsoH2z3tRYlz1D499NngSQZ2Zwn35Qm2hZNRvCoUXk5Eg R4Ww== X-Gm-Message-State: AOAM530NdAHuDgOszdyObPopvaJ9MfiSsJSYOm5nJokaq/m5O6WFlF5D 5BB3T28uL7DRHq8NcZ5cSZgdwg== X-Google-Smtp-Source: ABdhPJwWK1PE8rV7dFkPxg3cX1XyWcP8/iVIt/Wk1l9paRrGs4xeOTXhnvdcNAP22brg+FKbX5q3Og== X-Received: by 2002:a63:e241:: with SMTP id y1mr16251616pgj.264.1604989406158; Mon, 09 Nov 2020 22:23:26 -0800 (PST) Received: from localhost ([45.137.216.7]) by smtp.gmail.com with ESMTPSA id p15sm1569330pjv.44.2020.11.09.22.23.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Nov 2020 22:23:25 -0800 (PST) From: Leo Yan To: Arnaldo Carvalho de Melo , Suzuki Poulouse , Mathieu Poirier , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, Coresight ML Cc: Leo Yan Subject: [PATCH 2/2] perf test: Update branch sample parttern for cs-etm Date: Tue, 10 Nov 2020 14:23:12 +0800 Message-Id: <20201110062312.11908-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201110062312.11908-1-leo.yan@linaro.org> References: <20201110062312.11908-1-leo.yan@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the commit 943b69ac1884 ("perf parse-events: Set exclude_guest=1 for user-space counting"), 'exclude_guest=1' is set for user-space counting; and the branch sample's modifier has been altered, the sample event name has been changed from "branches:u:" to "branches:uH:", which gives out info for "user-space and host counting". But the cs-etm testing's regular expression cannot match the updated branch sample event and leads to test failure. This patch updates the branch sample parttern by using a more flexible expression '.*' to match branch sample's modifiers, so that allows the testing to work as expected. Signed-off-by: Leo Yan --- tools/perf/tests/shell/test_arm_coresight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/test_arm_coresight.sh b/tools/perf/tests/shell/test_arm_coresight.sh index 59d847d4981d..18fde2f179cd 100755 --- a/tools/perf/tests/shell/test_arm_coresight.sh +++ b/tools/perf/tests/shell/test_arm_coresight.sh @@ -44,7 +44,7 @@ perf_script_branch_samples() { # touch 6512 1 branches:u: ffffb22082e0 strcmp+0xa0 (/lib/aarch64-linux-gnu/ld-2.27.so) # touch 6512 1 branches:u: ffffb2208320 strcmp+0xe0 (/lib/aarch64-linux-gnu/ld-2.27.so) perf script -F,-time -i ${perfdata} | \ - egrep " +$1 +[0-9]+ .* +branches:([u|k]:)? +" + egrep " +$1 +[0-9]+ .* +branches:(.*:)? +" } perf_report_branch_samples() { -- 2.17.1