Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp221257lqb; Tue, 28 May 2024 13:34:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWa+nad4I1AFQxMZl/GErqQzd4AxI7WytNa9LZqWBJuyg4uyMLAZZcKMpoRUkd/iB0V1/9uNTZUkpVvkRg1RPE4CmWBzkXl9WxWJIvXLg== X-Google-Smtp-Source: AGHT+IGkqizguA+JN8OSJQNOnnUHGhB/77WJyUGIhwHyFBRv/PL2w+6VqvhGCtD1vI1K9Q24UQQY X-Received: by 2002:a50:d6da:0:b0:579:e690:8349 with SMTP id 4fb4d7f45d1cf-57a040b5d02mr129088a12.15.1716928445106; Tue, 28 May 2024 13:34:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716928445; cv=pass; d=google.com; s=arc-20160816; b=KeR9rgyIGDKMVKWhjkw3orxblufgS46DJnMxW4Fnh9hJ1U62jOOFbKiiCUvEq1tLNp 9ftApVdCzygOruxnA03uUj/pKGz3CPCa6ToGgRE+pRs4VrT8hNA2L5jvS0kY2AM3FC8j HzQ73ld1zNJWJhKIoQPwz9sQJ/JDIgR8Lf+veQ4tGqMRw+JA5yGEpflgBaymWM6rD3Xx 5lVB7RHCjFW1u+4YX3ew9UPWUmgM7f+mKeLcRj5wksUtJ8g71Mfsrt8wzG9HBDqn3N/e xsTx3CBtAz3ZceN/fRZgnQ9u/oOGWUPVAzZNIdaei9uqCUbA7w+TzHhfN8NIhn3suwRL eADg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=0cw2VGZNkMpKSutYrXYjUYeHF/K9pi3s6qLlxaYukgM=; fh=ss7lAE0BHMnAT94FD8fBU6K3Ne6rGthhQEh6b95YOdo=; b=E+o1NbS8VqrptO5bUjVk40abYklWUPejOP0SyKlhH1OybKjmkl3dr9NiyfsEnipo+a Vv6uuD0PxzZ2/XtMuB+8hdPAQHjgNaPI2Htct73oj4gfxkwVDICrzBXl+OLQC0joqaqc XeNXy9BK6T27d4AmY7zZxMur10h/emfD23PB0b5hA6gcxi5RKvMcfDANR734Eweso/h7 8/OAh4XNtV2gfQd9rhDK+lrZeHg+5VyK/9aWyMVsP36s0txPpnf6EgE0++BoKSo0IO0S TyvNNh73FPFgyo/lyJi9nFf8os8oa1TCNZ79sjDN2fmEyEwGHQ+NFgdqeyQmx1prxodC 8tAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GwcNXMnX; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-193040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193040-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-578ed6e3653si3939945a12.227.2024.05.28.13.34.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 13:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GwcNXMnX; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-193040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193040-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 153531F25784 for ; Tue, 28 May 2024 20:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A86E1178CF2; Tue, 28 May 2024 20:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="GwcNXMnX" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2040875809 for ; Tue, 28 May 2024 20:33:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716928423; cv=none; b=nwPQs7lSxDPISPHWzOdypB7W/Xc7uFSvUyg9ayy8Ko59kh4D1pEHhZMFW5cU0WsWnjnHOlRe5JfDh4ALO+NTGrOvEZQfahn4zeHFPBqqBhf5cNnccqetbGFDGY95edNTbecLc5i1vnIRncSZQENFAaclUGixAPsiiEkG/9QGbUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716928423; c=relaxed/simple; bh=aEL25iZmgeF0VL7mEOr0A6fyqaqdxr20iS+3Q0nmp5U=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=j8mGpsOqIwPRp/9YUvRb/pg19H9uSX5CfcVBPTvrt03RyrYWpYghhuMW9NatReiZO/GxNeaZJEuJhhYZ4soIT6Z8uTKVGPB4JB6kosSYcwoG62IV41yZHkrGzmFVBE7c8J1BeAaVDJ+glYVHWGCwypGY6/SeuRSg1x/J62NUz+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=GwcNXMnX; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a626919d19dso36614966b.0 for ; Tue, 28 May 2024 13:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1716928420; x=1717533220; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0cw2VGZNkMpKSutYrXYjUYeHF/K9pi3s6qLlxaYukgM=; b=GwcNXMnX3DghfIPcrFNbFYCm7AAC1Kea2l3anl1n82SgOZjD67B0D+yUhc7T4D+jEw e3hmmRC1XvzHq7ED5oz2SLQElvHWM5zuuOscJDgudPz/oQ1u5iLnRqidm2Df1i3QzuG5 QtmJ7llw8IVJAprvT+XLeuAXtWZaeznUx3CPA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716928420; x=1717533220; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0cw2VGZNkMpKSutYrXYjUYeHF/K9pi3s6qLlxaYukgM=; b=Bx1Wz1MvukuN/jOnW8FvfbnwuAiXdBp81k0chyBPpKF8gATNZVkxdM66A00shp+IUg VqM8FE2iqxlCsILqMRSRMZeGaLuprtBu8f/rCo8c6P12kTUJDEx/vS5De3vv+zq+CSmW smWAEzu88cdgHNvmQNTcoV3GuJ/WCvoiM/kFBLltm56MSoEWMaS0/gSDws8BAoJ7u9x6 kRBW60UylVKi18yssR3AK3VUEadIVwDmRVJd4yx/Uhw/rMEetErtjZHt5FpVQRWnLShH Vs2pEx5NUD/pDx2D3dBs/cRbepjtoVdryyujQfl2zb4rxiqs7UdPwP7CWVg1wEWe2XGI Y1yQ== X-Forwarded-Encrypted: i=1; AJvYcCXA9cdxJ+6hEiP2O30W2/Atp7tIm2ArzocLm5X8/lsu/VzioZ72Whs9HeATrB+2GBzvYrgEEZxMv8JyOh6D7BUR7T9foO1F7D2SOVvd X-Gm-Message-State: AOJu0YwGd4lKqFG8X7zZHXm+qU+/slaRdlwoM6boDflamQ48d7Ke4HLT YyD687tvbKOTzxgUt0x5XlrkdFUpmq5BG6oAtAW2xiNtQ4UCDJ/khM5BYogtDAT/FMNetKa3l7J IqPP7aA== X-Received: by 2002:a17:906:417:b0:a55:5520:f43f with SMTP id a640c23a62f3a-a642d37e3famr12101266b.10.1716928420391; Tue, 28 May 2024 13:33:40 -0700 (PDT) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com. [209.85.208.48]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a634e48481esm82566766b.224.2024.05.28.13.33.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 May 2024 13:33:39 -0700 (PDT) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5789733769dso332199a12.1 for ; Tue, 28 May 2024 13:33:39 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWo8wFjQHprD6IDHK1WF9+WbHlueBVfZbbJcWMlpCoqDP5TS1APXcw/5jTsR5DhOXAyCpRL6xtxEzZRCK2+MGAyktSoOhJqZvZ2l+LG X-Received: by 2002:a17:907:174a:b0:a59:c807:72d3 with SMTP id a640c23a62f3a-a642d6af823mr14314466b.17.1716928419187; Tue, 28 May 2024 13:33:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240525152927.665498-1-irogers@google.com> <20240527105842.GB33806@debian-dev> In-Reply-To: From: Linus Torvalds Date: Tue, 28 May 2024 13:33:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] perf evlist: Force adding default events only to core PMUs To: Ian Rogers Cc: Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , Dominique Martinet , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 28 May 2024 at 13:03, Ian Rogers wrote: > > But you've traded a fix for one set of users with a fix for another. No. You don't seem to understand what "regression" means. The "no regressions" rule is that we do not introduce NEW bugs. It *literally* came about because we had an endless dance of "fix two bugs, introduce one new one", and that then resulted in a system that you cannot TRUST. We had years of this with suspend/resume in particular, where the argument was always exactly "this fixed many more systems" when something else broke. But because random other things kept breaking, it meant that people couldn't upgrade the kernel and feel safe about it. Your old laptop might no longer work, because somebody had deemed that all those *new* laptops were more important. So I introduced that "no regressions" rule something like two decades ago, because people need to be able to update their kernel without fear of something they relied on suddenly stopping to work. The fact that the "suddenly stopped working" may be a minority DOES NOT MATTER ONE WHIT. Stability matters. It's MUCH MUCH better to have legacy bad behavior that you never dealt with correctly, than to introduce *new* bugs that hit something that used to work. So something that "perf" has never done correctly is simply not an issue. You deal with that by saying "that has never worked properly before either". You might even document it along with (hopefully) possible workarounds. The whole "one step forward, two steps back" is absolutely fine if you are line dancing. But we're not line dancing. We take it slow and steady, and if you can't fix something without breaking something else, then that thing simply does not get fixed. And there are always exceptions. Sometimes something may need to be broken because it's an acute security issue. And if it takes a year for somebody to find a regression, and in the meantime others have started relying on the new behavior, then at some point it's a "yes, that's a regression, but it wasn't reported in a timely enough manner". And sometimes the use-case is basically a museum machine and we retire support for it because such a machine should use museum software too. So it's not like it's some long-term absolute guarantee. But it absolutely *is* the #1 rule in the kernel. A fix that breaks something else is not a fix at all. And in this case, when the regression was noted within days, and within the merge window, there's simply no discussion about it. Linus