Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5634939pxb; Thu, 20 Jan 2022 01:09:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPzv5U9HGdqM6T2JObaPRKDx9uNWt65zh+fXK4NGMvbhKUppnRVLS/kOqLJibNJuraRt8A X-Received: by 2002:a63:6a82:: with SMTP id f124mr30898544pgc.515.1642669755870; Thu, 20 Jan 2022 01:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642669755; cv=none; d=google.com; s=arc-20160816; b=LeR7SaznSOHuQqn1AWmwuL4UG6ri6a9QzY63EWzrxr0Kzz5AysLSBEZNDzldyk0J5z ANCHIDhYgritC754wgUTzh7b+2391qIlwmInTDULOGaMh913UPrqSREUsK84iXjb057+ GR5zd6T4Ep0ozBrhYWVoG3Z5A+mVn5RDlA+AUB7wEfEKpd6QuDR9mv9i1oJWWKsl5kwD TVr1bsUt+3Ynt4qvtfBrHPo7hwjUkiMqHWYq1Z8t8yb7cIVqUInMYRHhQ0AarYqlY9rz rYA3T0wH6JtzpkCyWB65wZc71fLsIJmUhS1JJSuySSDuxGUQ+f8y93g10f9As6DIzwZi 3xiQ== 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=qpvXR4cEg51pENrFp7jyCvdVOLEuvkMp2uXm3S3/s38=; b=O6MrBMYw+7WTfLvrkA93+APkTGAoN3uy1r/st5hQ0pbkOVmLkBtPATKF8tEvniV16H +F6OPugUwRp0zY1+rJ3b54OzWamjwL4C3wHj9EFfIhSKidByvBrh/uPns1aO5dXI2lsn 1OldveZJ4ayHsO4egJ0QePNxvFz73rvNFmhsgenD5uZE2ZxanUHxJaczSuaXWhC36/Ti KmKlbOeP6Js3Z28qLF3NZookDM3dDX7U4C4Tdy/dvNL36STyIPk9xRe2Rv0gvHaTBJgA r/oW6XTrBwXMs6eN2IVZHqF0NgdTdoWDL+iaP4VZZXjf/IkYHP3EuL9HT7SBNWKnRKa9 gXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WmrASj3a; 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 j2si2276404pjt.122.2022.01.20.01.08.57; Thu, 20 Jan 2022 01:09:15 -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=k20201202 header.b=WmrASj3a; 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 S232862AbiARMcf (ORCPT + 99 others); Tue, 18 Jan 2022 07:32:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbiARMce (ORCPT ); Tue, 18 Jan 2022 07:32:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47FABC061574; Tue, 18 Jan 2022 04:32:34 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D929061380; Tue, 18 Jan 2022 12:32:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 254E8C00446; Tue, 18 Jan 2022 12:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642509153; bh=F9Vu7ZI1/HnPH5QGZNUeqh85iKDiHrkRW8l6raKQS+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WmrASj3abHpIKN7ju1MqlFtWwY+yzZqkpVOdWr9pT+nikc5uQwHJvmtPWBEot56md 8uvZW3fsAR01ws0X7LKtkgykQPuSBRUmSBVW4m6f7KaT0lwPDeBthRSs8PzjAhT7GA R+0zSy1emkBLdDXSNtPlX4fzkCZ1zu1fVl2CGXHX86Il4GXhXQ0r6B1BFTwrtUyedw JPLgOvn+LpML56YCXJMB+yUpqjTqQilfATvLW6sTKW5h5kjDZRw7ymla0/98zQKfIt 2qMA6YcSN2HomakS+9yo1mldhDfarQsr817bsuoRUg99WsnmP7vcvQl29uy82WyFss 9Ig7+VjIMb9vA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 86E8440714; Tue, 18 Jan 2022 09:32:30 -0300 (-03) Date: Tue, 18 Jan 2022 09:32:30 -0300 From: Arnaldo Carvalho de Melo To: German Gomez Cc: Ian Rogers , James Clark , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Chase Conklin , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Arnaldo Carvalho de Melo , Stephane Eranian , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] perf record/arm-spe: Override attr->sample_period for non-libpfm4 events Message-ID: References: <20220114212102.179209-1-german.gomez@arm.com> <35a4f70f-d7ef-6e3c-dc79-aa09d87f0271@arm.com> <10cc73f1-53fd-9c5a-7fe2-8cd3786fbe37@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10cc73f1-53fd-9c5a-7fe2-8cd3786fbe37@arm.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Jan 17, 2022 at 09:32:55PM +0000, German Gomez escreveu: > Hi Ian, > > On 17/01/2022 16:28, Ian Rogers wrote: > > [...] > > Thanks for fixing this, I can add an acked-by for the v2 patch. Could > > we add a test for this to avoid future regressions? There are similar > > tests for frequency like: > > https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/tree/tools/perf/tests/attr/test-record-freq > > based on the attr.py test: > > https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/tree/tools/perf/tests/attr.py > > The test specifies a base type of event attribute and then what is > > modified by the test. It takes a little to get your head around but > > having a test for this would be a welcome addition. > > I agree I should have included a test for this fix. I'll look into this for the v2. A test is always good to have, we need more, yeah. But since this is a fix and what is needed for v2 is just to improve the wording, please don't let the test to prevent you from sending the updated fix. Then you can go on and work on the test. I say this because the merge window may close before the test gets ready and its better for us to have fixes merged as soon as possible so that we have more time to figure out if it has unintended consequences as it gets in place for longer. > Other events such as "-p 10000 -e cycles//" worked fine. Only the ones with aux area tracing (arm_spe, cs_etm, intel_pt) were ignoring the global config flags. > > Thank you for the pointers, and the review, > German > > > > > Thanks! > > Ian > > > >> Thanks for the review, > >> German -- - Arnaldo