Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp222181lqb; Tue, 28 May 2024 13:36:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4DQ1s+IJCZLNn4KjVkove6w5wFGmrSevWO9UggeNiwHK5G6el55GItrttFQXK+TEJLanANGtt+t8xpNQ3vO5M8HLnmqf5pJqArueFeQ== X-Google-Smtp-Source: AGHT+IEmoaS/jedluyR2i6ZENxkbOPmoVAEKrq00084fmYa9lBr2RcCRtFtymfrhb6VHgOiMWBpz X-Received: by 2002:a05:6358:788:b0:198:f22a:9e79 with SMTP id e5c5f4694b2df-198f22a9ee2mr315083255d.12.1716928575504; Tue, 28 May 2024 13:36:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716928575; cv=pass; d=google.com; s=arc-20160816; b=HljJjrEh+zuqhApBdvshI8zbEyIpD4yB62C4zlagv2gS5wufwrx+7WczgCn1IvmaZz eaMB/qaPurIzjux1NLeLhi7zA0pIhhZxW832GA4iXs2WsY9lKyO+T6WNjyS61WGFGpbH 2OCG9MEtkE1iAiS7aIrHxBXnCLDmygW5VAwXJzyzq5H9DD33U9dpIja98xTQr6P+mZsS hNZ01hpsrhbYzMNHfeTGMD08g1qRuuD0OE8SKqyNr3nwbmWyGQyi6KCPAqIKbIkSS4Tj 2by62ENUzG/CbJY3P7yiu0/kiwibX1Gss0Hu96NF0djpsFdea7YHlw/N30cinhhRO/aK 7BHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MtVVbl9WsyTR4oADIzXjjbNJialS1FI7rnlVmASQ+MY=; fh=IorpNCLFN7kENV3GOolBshtsoOytWN1NQNIGXQdpG4A=; b=Gonv1kZt6D+5DKMufzJ/2OZ1fZhm+txUBufdq0ihiQGQ0EySEutdeUlwicknlCf/A5 UkES8MuY84TG1fCJpBvqeCxjijV6uBYE8wZKJ73MLQTKkB6Wfgf/MWOyFmmnSzHxHTmD sEeTgF1L7VnQ7qCQ9R0PrnjFihFIUn0RUa3d/vjdcekTJ7qk0M5zLDGZou31w+Rv113T jJ/kc+/BeKSgwvDcdmIEnRwHzGfKmgPqvZqieiYN2vfc0JiIgIYqXcR9GZLTH7fSGDSJ PXwf1ZLYEmu81s8V1Z8NiwKX5yH/K1NY69XgnBft/jIMX+ttILG6Z6pMFizNE+vkeV7y 6njg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=WiSaEb4t; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-192997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-682288e7787si8797919a12.474.2024.05.28.13.36.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 13:36:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192997-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=@google.com header.s=20230601 header.b=WiSaEb4t; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-192997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 AC068B280AB for ; Tue, 28 May 2024 20:03:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BC4B178CD6; Tue, 28 May 2024 20:03:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="WiSaEb4t" Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 CBA6510A3E for ; Tue, 28 May 2024 20:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716926607; cv=none; b=bVTUs8hyar1GXS6UbeOF7W1XRFAvkxxZi4QsIUuVYheHmycW/yaXNeGmvlSDBnkvn68uRihTvCPcnuMDHAS0344EofMunO/Eedc4WmH7sQ/06+RRN1fZO4JhOMumfNyHN1zTaIiXdCZZ/faQWZTIVmkCt57tI07KrJyIIF+OrL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716926607; c=relaxed/simple; bh=s9G0X2bLnZX2HF1sepAYNajMW296p4Wn4BHLPj+pKwI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pYWbt1HRZ377lgYHTnoOo1YUF6wS3w4vdH+3cNDVjMHGQBRElznIo3cs3xrEtDtpJOE6PQ/msxeE8Op8NUYWeprERtAGtVNEpOGZp2h69zvRY+IxOHoZzTQ5KdddCKlUwyN+1ioIr2TpKRlb8H0Jj596tVJnnv8QP9uKIBIz6BA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=WiSaEb4t; arc=none smtp.client-ip=209.85.160.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-43f87dd6866so96531cf.0 for ; Tue, 28 May 2024 13:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716926604; x=1717531404; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MtVVbl9WsyTR4oADIzXjjbNJialS1FI7rnlVmASQ+MY=; b=WiSaEb4tfSCgTPpOm8d0OFWtBm/YjbaEETjMHkgMTaKyKKpM52TMy/DQi6swJQTpH5 YbZPR718fH+edOmXuDMsXK4D13WDlzJzsbybOZzaQFqj8Ky0E3PNnJaH2w2wR7nJlsrt UF8QLWihKxmOVWZuj0ykQoF27xDSDolbYbTZAxMZ/JdRfac1dmPN/AWlWl6nCLNOan5u XxZYojO5pz1RBPVU9kpjnO9LzKCs+HmESDYDBsQRQcs6XfDD5xrOEKusV9EEb0dvTsjd SqP9fdpQoI+RRnqn7mMxnEFVE+AOb6F7R1aTqQWr/cGny5xlTcUo3n+8AmLMNq1S4Yb4 DicA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716926604; x=1717531404; h=content-transfer-encoding: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=MtVVbl9WsyTR4oADIzXjjbNJialS1FI7rnlVmASQ+MY=; b=I0SjA+q3sSaJWiPKRvFiF9e5HSYtOuNzRuxaYw1G4JQrhhprFyQQ5TyBG0vQOUycp/ /KcNvbOgjEeFFvFbdCMQ4LSH9TR0DvHvK2nZVVdxqBPE2QFbcUd+q5jNspVgMWj2TnHt 2rlf8/hEowwZW/MtZaeRldbDRfl4JPFTrrM+0e63o6lVqraNrTIK1LxRfTzHqXNKp4Vf QyH1jDMnR6CVT66JEL7KnRP1yQqrTa94Ul2Snw4uz8dLZatA+Dtl0SCXuzJgOThkLiYg UVQxumwWOoaxuVHxzkyELg/7VqTD3pQlqYc2bFxwmFXY/0KMhNFm5CvwLuPfHuOOceb4 DfPw== X-Forwarded-Encrypted: i=1; AJvYcCXoHeJgCD9V0+e2RM5zJLUVpGLIptMxK2KZeVw7djMeGZpH9/MRjjOkYuSHzkmAuH6BMYhsgHHxLzI4yhVraOYFgZEY0BQEyGhEcj7m X-Gm-Message-State: AOJu0YyS3yGMvkwQJ75xALPtYlDdnCzNumhmfZYyIpqnYkRxVMEP+rA8 wG4D5IeTD++31KD0zTszZF5gwNFybj0NCFtQZ5IAdokLGRelgd7eHkzL7akyYjOcmd/IuNFHhrk s+cX4W1k3TwVRXgRog0HPGo+R7+u38Lujb/Vc2YWdqrfTtKagvbYEp+M= X-Received: by 2002:a05:622a:5c95:b0:43e:3d52:3e0b with SMTP id d75a77b69052e-43fe0f3ee9bmr359531cf.16.1716926604452; Tue, 28 May 2024 13:03:24 -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: Ian Rogers Date: Tue, 28 May 2024 13:03:11 -0700 Message-ID: Subject: Re: [PATCH v1] perf evlist: Force adding default events only to core PMUs To: Linus Torvalds 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" Content-Transfer-Encoding: quoted-printable On Tue, May 28, 2024 at 12:45=E2=80=AFPM Linus Torvalds wrote: > > On Tue, 28 May 2024 at 11:59, Ian Rogers wrote: > > > > But nobody else ever reported the issue, even ARM who maintain the PMU > > driver whose event name conflicts. This hasn't been a problem for > > anybody else. > > I'm not blaming you for having had a bug. > > I'm blaming you for NOT DEALING WITH THE BUG APPROPRIATELY. > > Taking some time to fix the bug is fine. > > But that's not what you've been doing. On LKML: Issue reported: 2024-05-25 1:31 ` Linus Torvalds [this message].. Fix posted: 2024-05-25 15:32 ` Ian Rogers [this message] The only thing I've tried to clear up is the ambiguity of when an event doesn't have a PMU what does it mean? Perf's metrics don't specify PMUs and have uncore events. We can't restrict non-PMU specifying events to just core events without rewriting them even if it best matches your mental model, perf has never worked this way. > Since then, pretty much ALL you have done is argue about irrelevant > thingas that weren't about the regression in question. > > The fact that you still don't agree, having broken documented > behavior, and still argue against just having it fixed, I can't do > anything about. > > > So I think the revert is a real regression for a larger user base. > > I didn't have much choice, did I? You refuse to even acknowledge the > bug I hit. I'd have been happy if you had just fixed the bug. You > didn't. You just argued. > > > There is a testing issue here, not least I don't possess an Apple ARM > > machine. > > This is not an Apple ARM machine. I have one of those too, but this > isn't it. It's an Ampere Computing system, based on an ARM Neoverse N1 > (and the ARM PMU's both for the core and for the interconnect). > > But that is pretty much irrelevant by now. > > The issue is that you don't fix bugs you leave behind, forcing the revert= . But you've traded a fix for one set of users with a fix for another. I suspect the number of ARM neoverse N1 users of the PMU are small, not least as these devices tend to be in the cloud where PMU support is deliberately limited. As test expectations were for the patch applied, I think things are further regressed. I'm glad you're happy. Thanks, Ian > I'm happy to test any patches. But I'm done arguing. The "cycles" > thing needs to work. This is not a "pretty please". > > This is a "if you can't understand that and acknowledge that without > arguing, just work on something else, ok?" > > Linus >