Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2530620pxb; Sun, 23 Jan 2022 07:36:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx44VPa0VMt4qDy8jSkOPDCrwejRCWxyqq/0qWUwlBtil16zYVBJd/QYIc7SgtztkJaI/VM X-Received: by 2002:a17:902:8695:b0:149:cb5d:ddf1 with SMTP id g21-20020a170902869500b00149cb5dddf1mr11677796plo.103.1642952168999; Sun, 23 Jan 2022 07:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642952168; cv=none; d=google.com; s=arc-20160816; b=hGeyX4CRTkTpyrIj9N6+cyDDCskrWNaH7Oz07wVqy6r3StKDgYrWAFIa6jz3c+X1nL 25ZmeJ7CioWMRoJ3Xpn6pZ0PB6RZCzPKp22sQlZPo6okPeh7yjrebsCeLOuI+mMM33Vm kVHWtdxcYIgCHp08obzAhzUsj3U6NUHANfXWuL7EifIxk1ojPMoGZtHJNZSPkxfrCXK5 O2L0v1Bly8w9u878NqKpvtxy0A5XZ5Z6cDS4vXCGNKajeq7s4zkHWVI9UltLzn769k7P DfliAjIGWfhPznkUZZHH2e9bv4uZgZ90Ey4hWCe72js8oCdz2kgz6zpSBrtkc8tCYhNg JhpA== 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=Ba0JqFcbdjXccRds91xLM8pSZSaEnAi07BQC4rzagnE=; b=VBElr5dd00t/0rMFPjMOt9YwznXDWmiqjUmaK+kXY9ZfPGm2sd5R8GCF/SN0mLcE9h +8An5FEy0HFYmM2ye0U1SpSWCemUmPT5M0f+oXC017VOG2l1ReKVflkEizjhOThEoQ4D 3VvPNs5J2YAqxFKJpoTrs6Ku0szZYKN5bwG5EqPFtt3D1+HeOH/WNHRoPT8mMwAKI3fD xhFDCT5aJUqqYho9CCjS0LYg5a3GlGcSqOtlCCgIi8OgVhf9QR5OV79ogVWILmmrN+Sg UDYC1MpKYRc0lECbPMWizqnPsIN6XAT+7COBd5xWd0asyUXkLu4pp3MjnXK/o3p4ORXj hx4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=snCUP0Jo; 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 o10si11927085pfu.54.2022.01.23.07.35.57; Sun, 23 Jan 2022 07:36:08 -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=snCUP0Jo; 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 S230163AbiAVURF (ORCPT + 99 others); Sat, 22 Jan 2022 15:17:05 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:42818 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbiAVURE (ORCPT ); Sat, 22 Jan 2022 15:17:04 -0500 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 38EE060F54; Sat, 22 Jan 2022 20:17:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7977CC004E1; Sat, 22 Jan 2022 20:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642882623; bh=tVg2I+OYNYnmRW0hHAxIzXL1Bh86fTDdBEB8uHh50xU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=snCUP0Joj9DvmkjsEKMpcvLb/S20VUmJbOQFnDtT0y8UZFnzTps/m9i0afmyre5Q3 vyKk7zK7+Y6mA6qCcvFxzLIfR6djclcTRgy4DtgMAYtvNtI5VNrLgYMeTYb6H0xojv ebXy8RDsS8kA1PZ1bJHigR8nleb5Xx9G8tTXW0+T/Rp3wKdw3I538r56mBaxFi+g0e eFuC9EMVXN8JKPHJFOyQwWlebRqqtuC9MyL073cWMtX5Z6dv47hWy7lKarmraaJGTd LLii1yigMdfqWYFJU8QgdA/SN+hJ+AcS8/AfV5oWaHGEaVwCPOHrB3dFqaieTbNri2 kKZaWxQ9ppQVA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 78B3340D0E; Sat, 22 Jan 2022 17:15:01 -0300 (-03) Date: Sat, 22 Jan 2022 17:15:01 -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: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jan 18, 2022 at 09:32:30AM -0300, Arnaldo Carvalho de Melo escreveu: > 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. So, any news about this? - ARnaldo > > 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