Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3769107pxb; Mon, 9 Nov 2020 22:26:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh4F4iWTfCYuPuqrpiRuEjwRlb0IoQvG0upGWg4s+NntU1RNBiFxZWYO7IuL14qkERyRo9 X-Received: by 2002:a17:906:e53:: with SMTP id q19mr19371557eji.254.1604989617760; Mon, 09 Nov 2020 22:26:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604989617; cv=none; d=google.com; s=arc-20160816; b=taFI8wbGhnHkP6SETuR6uZ+O8vsSfaCuX03XdNKxdo7DGItvV0NKfoMEMjcLiOx4Ia hZVQ8IrZ6Hcf7FzTjlwSgE7nksPnHd5gxM75Lo8HirZPQwGHArI+aUxkXjFejt57fLMZ KAK0nFlY6KC3yJmqE/Cx1FbYOzmvUSX3aVSBKQUvFSUL43mn6cWFVSBgFjGyCT9gs+f0 BOGGjnWVh4LpNN9Fk9Fll9Es02uUrEtIfWEG/llNa//3YOskkUMlwv5f19agMMzmIAZH kCHkKMb+lAJnSBvi+ZSxu1F7o0JWc4Bplo6zLMw3+MOAEuFIp8eW/W6FKO77qDXK/801 pivQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=y1x0mATAfMh0RgOZpG1Vhgavz1aahfCajrpAeC6qJxM=; b=JtEDCnrn91lHhm0e5Z4St8gxjOGDYwDvYWGmnsjc35VKtOxtlMS3+faT+bJGj2XQ2M 1vh+HJ445go4MBni6TxQyXXOI+zlCVD6GCnLZx9sDEc94EIRY5dlVabHd8bwN3LhL8Vr bG0pDzwzNzcIGLBpbkV8zt7dcz14pmQjLwzKXAJ2URB2e4yZG7UoQRGSmQHPaE33CjRa YMLIaPkx1WPpb+9sBBAQpREM9F2D6VL9QlqUgAWQRhtyhSpQAccfPSkJ7n6gWg3xgJIW JSIJK3qP6cgXzXJJ4nwithCJvTzMmh7EIWNvPhji1y/cPVANbcw/6im5mDZYVm7zdjT1 dsGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l4OBvo/A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si8562173eje.479.2020.11.09.22.26.34; Mon, 09 Nov 2020 22:26:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l4OBvo/A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730713AbgKJGXb (ORCPT + 99 others); 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-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