Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp20742rbb; Fri, 23 Feb 2024 10:19:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW2LMU2/Wf8FRvzcqCowX9/OGqfPidI1pp/AyBNqUxYz7l+nkNdF3PuNNdjicpOOq0b+ysf2kSaaVpr7NDwnwcyJI+VQLE7XmGJe938bw== X-Google-Smtp-Source: AGHT+IHstLQ2MGxvlfdtt2SqzvnOq9If7n6BY9tBkFzP4WAaMqe7hHWbFWM+ucrQDKZly46kQy5h X-Received: by 2002:a17:902:bb81:b0:1db:fd89:791d with SMTP id m1-20020a170902bb8100b001dbfd89791dmr650944pls.39.1708712342835; Fri, 23 Feb 2024 10:19:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708712342; cv=pass; d=google.com; s=arc-20160816; b=nz+Y3YgbNdeaSiqxvZD3p4wtdHsYxjUwli5bJ2Hle8AVcWFiHBmWxkNh2tQ82Bvu3r wupRkvFkpYCj+OLDMmjIHM+/OkcNtuYI6Mde8NCT6hMUd1O/qpzvnGLzyrKTwRdG+kBl aBVq1Zw2200QDKPcwyGjqkLbmCXbCh3e/zqkTkfq6zuMXMrBliRPvgRWqDFznBehDkUt JdOMrpOOk4ZdgelOHtN2haDOFnI0SmI5lstVbkzTqLQzhgIsCHOGzT79I1uog0Ox7iAo nwbvNzkmAp5pUimzXSlOHwMLdkDC/YwQ7hI6r0y1fwPpMncBrcQS7U1ZbYXApKVrew/w 9eiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vZwWaHs2Q7luTtoB4UMxDDnxBARHt2LDr3ZEwWUNPGg=; fh=za5A7dFNTobXs4GrE9YWVJOjOqg+9HWbBiUb89mBRXI=; b=Z0w7WXNizMXGXF4EJbbmlWXleo0IaxX6Xgp9PvMZ+7ogjmm6t9x3p9IVmEc0jJUu+g V6H4deDtV2wcp/1fXLODsu2K/ieNYbW/gluFuSi9cJK+Hhsuhfq5jN1/MI7oKMqkVNIy FxaeMp064cnSar7+iVbmyb/4gwivVdztB9H0ZhETueSGtsH2qUpWujF/joO9GDJghzlP AKfz2Hxhyygnx9F7dVWiIi1aJMuqGuKSJLtfVRw32OF6HOPQAbJnnsMCwuHgZhZB7yC/ 8xVD47WPFO4c7fQ1JIN3yxeT0qpqjyNkOOvUCHeexWjvH2cjxkppzkTC1NPx6GSHMZN0 XAfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PCvoK3Z8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q5-20020a170902dac500b001dbe7a31ab9si10527289plx.315.2024.02.23.10.19.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 10:19:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PCvoK3Z8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DD3AEB22793 for ; Fri, 23 Feb 2024 18:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8C6014263A; Fri, 23 Feb 2024 18:17:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PCvoK3Z8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A1A284FC7; Fri, 23 Feb 2024 18:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708712249; cv=none; b=hdJXg1iECh58ynlf0i2N6F4cQ7Bk9OLGgVvk5wwG9i/EwAOqBKzhrZUeac6kpSa2IM30VtBuMAXxPBsPNsgpxIUmImnuyic/wtuZtMujLHIy6y8svOv3d+aVD0K8R98KvUrkPNp1ZEZJT0R8ygMVei8D2SN2j6qXozacX8WFAcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708712249; c=relaxed/simple; bh=DRqSQ0pDZgRhtbd5dKOxMnglSykvuaf8uOo29P/P4P0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RwKVCxqPLdMHer8gOG+2p4kKIrzchjqBEZ7JFXIk1yhbCwnVBg4JRcn4AMSqHwNdEE50k40LqWGNTGgq9kihh7IDMjfS2tqCMk3EsauWjvSHTK8I2lb3S8S97emVXJiDujId5Xe1GiY+H8cDiKFwg49Y2n1ZWSD6if9tIa2x/oA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PCvoK3Z8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 445F6C433C7; Fri, 23 Feb 2024 18:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708712248; bh=DRqSQ0pDZgRhtbd5dKOxMnglSykvuaf8uOo29P/P4P0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PCvoK3Z8RKQMcPWZaiRJx0H09yzXJ+SwC7c5t5t89/3a0lFkHYQ2t1JDh5SwT1nRy WOSJsrNWRFORKr+eZMYiEyf+b6G0+2WAe5Ah/PYBQwazTaNjTmnM/H6ExNHGlXlNdr HMU8wsdyt5eeQ7Z27ZZtSjdi2wLRWYKSyJAJQBEhX2ok1vGysRPrEcQZ9Hp7LSnj+/ 9IatqhXP7wxOtfibrs5ZGa9cH1qiy6QrEnTJSpeXlKboR5SjsOQBAqzjXloxNnqzpP Agph922p/JcMDxuJWETLk+7gdEC+NEv5cUNbn2Uydjez1gSozlTt/Y1nNN7I0Q2cqD 9uQ+PTPiUQAdg== Date: Fri, 23 Feb 2024 15:17:24 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Kyle Huey , Kyle Huey , Robert O'Callahan , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] perf test: Test FASYNC with watermark wakeups. Message-ID: References: <20240221175210.19936-1-khuey@kylehuey.com> <20240221175210.19936-2-khuey@kylehuey.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Feb 23, 2024 at 10:01:31AM -0800, Ian Rogers wrote: > On Fri, Feb 23, 2024 at 9:35 AM Kyle Huey wrote: > > I think perhaps I'm barking up the wrong tree here. This seems like a > > ton of work just to write a regression test. Maybe I should be doing > > this in tools/testing/selftests instead? > The problem is detecting support for the feature in the kernel. The > BTF approach isn't that bad, a couple of finds, but I think in this > case there isn't anything to be found to indicate the feature is > present. I like the perf test as perf tests are a form of > documentation. Perhaps just using TEST_SKIP here (rather than > TEST_FAIL) is best and the skip_reason can be a presumed lack of > kernel support. But going forward the general expectation is that it should pass as the feature _is_ present, isn't it? - Arnaldo