Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4207083pxb; Tue, 10 Nov 2020 10:22:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeaT7nIQAD2mCkcS1/y7cYekjHlAmkhfzcJoiNCxXmIUQkrd97Grv2t/GKY8fZ/vF022nh X-Received: by 2002:aa7:c716:: with SMTP id i22mr663909edq.94.1605032556626; Tue, 10 Nov 2020 10:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605032556; cv=none; d=google.com; s=arc-20160816; b=LjoxY13HUh5VLhys3tqt3H6K0rFUwty7c1kFd5DjcHKfFULJxxOsxbJWzo69w+yxUE 6I+mrFtMvEiYme64vunx0b23QUowatpLalMf3V4ovLAMD9Sy2D2aFm6jaFINySpGsOtw paxX7KaRhAF2xpEsNc4iDB/TKDKPYe8YofTl37n71Qlzanm13z81f8N3oC7qjz356agu 3wJZKLc7lpbAg26DZdXhqkY4+XK9JEEW6ctLcLVThT+HHtHGmdj69lUcigb4lGWiayh4 XZKw7bHx88TBlp1C0M1XYpq3cDDpH+xdwyZehaowpjXitWvttKLDSZXxdGTMnFXretVa V3GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=E51iWq2ED7ZsbroFJ+HyvnU8avnwyspo1bGY8yDtmjE=; b=rMDs5S7Wsxyg/sF1JQaJfl051L+DLbdHK46N9eznJEGHJ1H8N3c/0iViJdxdPBAsH8 799q3vWJLWm9l9It7xhIn4rIAvoW/v49CiitMAnIVaPbqx6rPegfyDXMjV2qC7oe7ngi 2LofvvSDXkbpQDym2jEEE2hKKI7jwh9YQ8w/J3h/aixCgm4yiu7/MRDNR7AdM2JwRVBV Aqnb+gU+/iOzA6h4kJXcj8UjcSe9IP28sQ6tqhEBkAawyGFmwr/kT6Xwyasf7kbc+ZLF 844hhBs1SFQvcLp1iDdQlDCd6I/9JjasZPJK21yVxXny4v0/sknO0eJSufKfBF12u66c 0RWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Zrh/MWjs"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si7266368ejr.580.2020.11.10.10.22.12; Tue, 10 Nov 2020 10:22:36 -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=@kernel.org header.s=default header.b="Zrh/MWjs"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731348AbgKJSTe (ORCPT + 99 others); Tue, 10 Nov 2020 13:19:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:60348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730618AbgKJSTc (ORCPT ); Tue, 10 Nov 2020 13:19:32 -0500 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C63C920797; Tue, 10 Nov 2020 18:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605032372; bh=XCPLaolMQI6N9k9I1q0k4/0i3VqmFIS19Tg4sdymaF8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zrh/MWjsBAwQHzVas5+2aIvrPaUpaaRV9kj5ArhfSab9Vt49T+/ziWFXZjI+6IGRT UBMdc22xDbwguVG5wLeSm0OpSUxgUjJArsh8qBXH5kqYTdyISebBkwiMZUmYmmlwvp ypvT8mQ9/0avj/I2uv7zJ3D89uXmxtSwOrK0yXps= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 25E81411D1; Tue, 10 Nov 2020 15:19:29 -0300 (-03) Date: Tue, 10 Nov 2020 15:19:29 -0300 From: Arnaldo Carvalho de Melo To: Mathieu Poirier Cc: Leo Yan , Suzuki Poulouse , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Jin Yao , linux-kernel@vger.kernel.org, Coresight ML Subject: Re: [PATCH RESEND 2/2] perf test: Update branch sample parttern for cs-etm Message-ID: <20201110181929.GA355344@kernel.org> References: <20201110063417.14467-1-leo.yan@linaro.org> <20201110063417.14467-2-leo.yan@linaro.org> <20201110180829.GF3429138@xps15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110180829.GF3429138@xps15> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Nov 10, 2020 at 11:08:29AM -0700, Mathieu Poirier escreveu: > On Tue, Nov 10, 2020 at 02:34:17PM +0800, Leo Yan wrote: > > 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 > > s/parttern/pattern I'll fix it and add stable@ to the CC list, thanks > > expression '.*' to match branch sample's modifiers, so that allows the > > testing to work as expected. > > > > Fixes: 943b69ac1884 ("perf parse-events: Set exclude_guest=1 for user-space counting") > > Signed-off-by: Leo Yan > > --- > > tools/perf/tests/shell/test_arm_coresight.sh | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Here too I would CC stable. With the above: > > Reviewed-by: Mathieu Poirier > > > > > 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 > > -- - Arnaldo