Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp462674rbb; Sat, 24 Feb 2024 07:58:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVfsLTCUUfsW3BscPilOtWuFWuy/aUFuXJlvUQnLuI2mNms/dwAUwML4FTEoi4hcxPqHAr99RYt7dlujrfFmCAjiOf9BY/q5M0kttn9Mg== X-Google-Smtp-Source: AGHT+IG5UihGHZ2VjdNM1fKT2EDKdvskFPu35Xit505BmROHKLy1IdccJSj/2UiogrNGVkaabnvr X-Received: by 2002:ae9:f30f:0:b0:787:3aac:5499 with SMTP id p15-20020ae9f30f000000b007873aac5499mr3136615qkg.35.1708790339250; Sat, 24 Feb 2024 07:58:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708790339; cv=pass; d=google.com; s=arc-20160816; b=ROL9qb7pHCZea9X40zGyEyuJjgpLMXES0tNMtdEGklK2s/LcBAdf4ZddcbeuTO168e 1GZxJIZUuvqnDbWPmnCsezQwGG1KmecslLLhg8+rKv8aupk/U0PaRS5qJ+Qeo9L5PC6u JzRdyDIzCqtuhXlF8MKQLSp3ZKuGbl1SHdt86WqaJsvB06AJ041M3AlsTMoIFi9FgOJM uD23xioDNePy6/tL0xdm55v8jjhpeuQQlGLvKnOsazc76TYh4P4CBMdKx51TZBCAV7nv /hjVa28gBZC0L90/IgSdeNybtZq+xwxvsFlctDr5RWjtlCcLLj4v8eFo+jKr28q7EuLT mvWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zG2+4QanKFaZgYKYYKl4s3QwkjJACvAkbwzZBkwW+90=; fh=K8dU2qU4pgVqMS75cTAWMQSL4ed9ILEzcPkCmXeHflk=; b=o9pGw91oi8k7cCOARO1xR3uy+Z2jxwCbkld7Fy0YJ4t3fI97FSyQSt5XNy/b2LjVM2 wLTDS3opAx0uaugXW9f2CgO90iurLdWM5o9bsqVUZQqXfmoxd8v/XtcrGg5rJle8xI05 HoxEyvABk2J5YSn+uCQPFYyVaeXja+U0dwUcUJHrF0znSMYBgyMogthiWy7of35M8NmZ yNhfIltwYWAc3LZZZuUOGfolBJDQhBqOo4gT/L/CIABLIwvqEXMWNa/kJqz08C6l5gM+ vDBkEJ0LLgHe4ZyHKGcmeNcM9lnyCrcT4tSvbZ/L/WDJ7zpP2zOeftMdZGeWZvYiZw+B 0yKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dEVBuFq6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t18-20020a05620a0b1200b00787889ded5asi1305212qkg.297.2024.02.24.07.58.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 07:58:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dEVBuFq6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79730-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B0BED1C20FA0 for ; Sat, 24 Feb 2024 15:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2619B47A67; Sat, 24 Feb 2024 15:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dEVBuFq6" 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 49B2446544; Sat, 24 Feb 2024 15:58:51 +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=1708790331; cv=none; b=iEoNFwfEeSCv33wkpaGvtmBUSPTrJnXZx4VoSTNWERNa81FpFG9cb7Rb2kiMcNhG+fjVnmkUvARnAO4c//kGkOfCn/j2tsLMYCADCtZn6fYWBmFxer3F2RcrhCRy356b+BQjrpLPPnsYeaeD6bDmdD9GVucQE//iulDco//38Yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708790331; c=relaxed/simple; bh=ymKqKz0uEEANxmgT8GLsJEyIWmA5nB8NdlwU00hW8TA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wms/30kM15DrLBS6RAVeOlpiKR6YYLgMCcayz1zAWH0R56wMc/46vkXOYCXIrCMvBu09bXaDbUOkqUzZxlwapyA8HgQ0bv3XF6gmjih6+xUR8F0zNC/NgcJ6jsOfhBOCFfURT5MAfmFjiNTNarV7LgeUM79UT7buDDXM5y4UU3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dEVBuFq6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 987B8C433F1; Sat, 24 Feb 2024 15:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708790331; bh=ymKqKz0uEEANxmgT8GLsJEyIWmA5nB8NdlwU00hW8TA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dEVBuFq6oJDdAP1MaqLFUlcv2816kENsCzujuM1m4gOap4OVMsQSTjdtJsr5GfPC5 KSEbXmYYX91ADpokA/uP3LixK5WMdaRA8BmnhM2UUplhgnrH/YisHWuLc7ipNDLx6T GHR1TwDCOOyCc/YlQuDWUt1i+BiMniv3Vjz6BMmTCRY2sxUBTWQGtDk6kAoBWWr7qp duxBPVQlmrYzhejxhImM50cONNy6wYJgvXu/OYUOK764M3dWmGuTuPxd2T6nz3Pbis fLqYAEszJLvgW1KEbKMcIBWXor5W0JarQ8hKozW/YOTBNMPEEAUH1K2i1ItfMiSca1 sOYHEDqSTi9qA== Date: Sat, 24 Feb 2024 12:58:47 -0300 From: Arnaldo Carvalho de Melo To: Robert O'Callahan Cc: Kyle Huey , Ian Rogers , Kyle Huey , 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=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Feb 24, 2024 at 10:43:38AM +1300, Robert O'Callahan wrote: > (I work with Kyle.) > > IMHO this is more of a bug fix than a feature. `man perf_event_open` > expects this to work already: "watermark: If set, have an overflow > notification happen when we cross the wakeup_watermark boundary" and > later "Alternatively, the overflow events can be captured via a signal > handler, by enabling I/O signaling". > > Bug fixes need regression tests. Such tests should fail on any kernel > where the bug is present. It seems strange to expect each such test to > detect whether the bug "should be fixed" in the kernel it's running on > and skip when that's not the case. I haven't seen any other project > try to do this. Instead (as in kernel selftests) the tests, the code > under test, and any metadata about which tests are expected to pass > are all in the repository together and updated together. > > It makes sense that tests for the code in tools/perf should not fail > on older kernels, given that the code in tools/perf is expected to > work on older kernels. But tests for bug fixes in the kernel itself > should be expected to fail on older kernels and therefore should live > somewhere else, IMHO. That is fine, I was mostly trying to help in having the 'perf test' patch posted to address the review comments from Ian. And I'm biased because I work on a company that does lots of backports and then test perf functionality using 'perf test'. And also because the kernel now has this BTF information that can be used for introspection. Being able to run the installed 'perf' tool and check if some fix is in place and its regression test is passing looked like an improvement when compared to the selftests method. If in the end people decide to do this in selftests, that is ok with me. - Arnaldo