Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1621635lqb; Sun, 26 May 2024 09:12:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7chvt8rqPlZed12VzClCat4RKO2qZhJefAJCfLtqjEsVSSflFClf6kwiunmx9Hy7WyRx3UFd7XIiYnakj0IYfqvTRyhIa9HhByfe8PQ== X-Google-Smtp-Source: AGHT+IGt8VDVAlb304GbrR1CcosH3v5jRlGEJa3bTHFv9OyZnMiQQpTkWQwZOkVu1fH7iha2qo1E X-Received: by 2002:a05:622a:15d2:b0:43a:e2da:2b78 with SMTP id d75a77b69052e-43fb0e6e336mr68256281cf.29.1716739931376; Sun, 26 May 2024 09:12:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716739931; cv=pass; d=google.com; s=arc-20160816; b=gW150YtbTfOhgg9qCsHZw1E8XVd6VAvb8YoDhb9BeTO9EbYH3irqnqGPv2So5FR4WI +gMtQ0M4HCBg8DQcUDAqDCl+idinGqLBFQXV1DDxbOJfRmfhaXww3TSZeDHma2YdK0zY OFZhKbEu3cD+ekysciMJPmvQ4ESD73O1lwGAmy81Jturkv9FPFcF16BQbxcVMUl+BfuO 7xfbOfp6p56Jptu+Zh2403ysH+1kWw5KKXDDZK97j8NXEBVgcz29UM3UUbu1MPfOK5Ba jtPgafSVAFI5K8Wz2Dyom7PRTlPunzci21DrSPkNyUJ2c4Dz+FVxh5YF90YxPf++5D3R KdTw== 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=o3spg7Ji2j77u3EczWS+0jELUOh8+Gf0gXFP+GN0JHI=; fh=xrHdTTJzx0quLOLl8yy9SjFUvN8Ls9WgdIOkC5Tqjmk=; b=exYL+cNYJKnG7p9tl4q1yN1O2sQixQHTTklnaKRrJFfCOjEWKW073385KtqDqOJour DJAi412lviWF59o6HUpZ3mwQTQnPQE61DHFogUdR6yV7uoNMNET0fp6kWi846iXWN3hM 5v7IvxlSQY1hcfOE8Ta0T+eeaQMfyYKAkStRlhaU+Ytk8JVzJKTGzxXK5TVpXpABWKme YTaV1uWQJ4dDieb5a4v0kKyVi4RCcvcj77cElmp/mkUg83EytyO/y72WzEMXjSItbusp iR2tXX+DMTalb7N+0eQw5QGu/CEmkw/5XUe0ElRAvY4MEspcQknECrXdqmC4ouDIaPwP sAFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=C6A6dTaJ; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189781-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17ba87esi62775731cf.71.2024.05.26.09.12.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 09:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=C6A6dTaJ; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189781-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B6AEC1C20C14 for ; Sun, 26 May 2024 16:12:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D61761863E; Sun, 26 May 2024 16:12:04 +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="C6A6dTaJ" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 EAB1417730 for ; Sun, 26 May 2024 16:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716739923; cv=none; b=gXdliCGY1JBEToaQi5CbHjluaE3YnWGu5Db/AzIyoN30SFZRkw6pdOpg5iBGxwgaUNKyQNOUm15vUD2DxKB4zeWbD8I5XCD2/nh42CEzTHTWxTkO9ZZA0cN+0ztsES/cEiKqBevPK5rY2aXPpWJQZiKnRDOmYfajPC8ZR2sOx2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716739923; c=relaxed/simple; bh=1qTOg0i4AJav707D3NLC+pqPicBkYgVxlo3Ac7E7+Zc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=k+wyCfWFsQ3i7ARkHEojMlalzAE2zY6cqYSNvohvu9a4FgM1y4UHC2UphcJoxUNVzCK5yU6ekJm29JZ2QEBlQhBytyWJ7ANDj9cD9n6+IjsoIN37ieHHg/f9htLJRPepH1PdfqGOLRbZ5xO56GBZ21CY4vnGulzv4BA0vvS6mjo= 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=C6A6dTaJ; arc=none smtp.client-ip=209.85.218.48 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-f48.google.com with SMTP id a640c23a62f3a-a6269885572so400726166b.1 for ; Sun, 26 May 2024 09:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1716739920; x=1717344720; 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=o3spg7Ji2j77u3EczWS+0jELUOh8+Gf0gXFP+GN0JHI=; b=C6A6dTaJyPsMUHQNltHZZYhNgdxdnzWxDI26t6iOhV9AxTcGLUxYI0jFiUj8U9R7eA mbHkqkTux+2JxzgSN88BGd2yg3HFtepr4/EfvBJ4PEhA9p08uMzJStaaOlxR+2mfYpFc ITsSBxh8qUZDCIV5qic7M9VBSzaZS0ZaAMvW4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716739920; x=1717344720; 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=o3spg7Ji2j77u3EczWS+0jELUOh8+Gf0gXFP+GN0JHI=; b=eCpRKVintG6pbLPd+AU3iaxPNPUMbbJxBo6kRBX1m/sv5Dq13evtbF18Nrou0EhFbf 9lOGBFIS+xS2wohveElwZgcloYQF7JmR1LB9KpPLohFJIeABHn/GbTYHHQmV/ecgDQ2O JX3w2r57F0KVS4QBhHNDMg6ywPAe2TDMmTUXtQA3fwhCovp5Ip6dpI07sdDaX09okxKc d8tYWjy84qOkAgKwr+x/T3kGWNtDt4KZrQPJPhM1WIoXCBtpEcDSwo/5XMXzy36aPFET rS1btuzEBHo3eRbceSQeyD054tDYYG6zr427mG1rpJVRgYshQKC6P9NYpUi8zE8QOV4n 7FaQ== X-Forwarded-Encrypted: i=1; AJvYcCWQZzI+qXynVLuDWtnnuSxrcntaNA/Wwefm8eSzXsEOOUg1cYmMQ4m90RzMt7jr+5bL+bks9S/k23qs/quRKJCnCyQ12RX+axB3VqqO X-Gm-Message-State: AOJu0YzQysHQU167yRSs7PXb2zluj37L0ZqkosERrr7ZmyX8bUR+67lN yuWK0OCXSgGcA+pcUqWJTkwnQKjo5pyaP10GAOGmRiQ6KmA/8+cm5LzrSKMeY1+B3sOGP/lt0a9 +LF/lgw== X-Received: by 2002:a17:906:4a50:b0:a59:c807:72d3 with SMTP id a640c23a62f3a-a62620a72fbmr641711966b.17.1716739919942; Sun, 26 May 2024 09:11:59 -0700 (PDT) Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com. [209.85.218.42]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c938828sm397006666b.81.2024.05.26.09.11.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 May 2024 09:11:59 -0700 (PDT) Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a626919d19dso378463866b.0 for ; Sun, 26 May 2024 09:11:58 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCV9qWScBZlnlCwBkhtaK2TC+iPjUrryVh/8LC/455zkLzbWE7ZHYgc6T3aL0G4sRGuBC5GDPqvyfDme4yLB0J4aPaHwxDWHOcQi/hRG X-Received: by 2002:a17:906:275a:b0:a5a:3e00:6317 with SMTP id a640c23a62f3a-a623ea0380bmr807493566b.31.1716739918672; Sun, 26 May 2024 09:11:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240521192614.3937942-1-acme@kernel.org> In-Reply-To: From: Linus Torvalds Date: Sun, 26 May 2024 09:11:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] perf tools changes for v6.10 To: Ian Rogers Cc: Namhyung Kim , Arnaldo Carvalho de Melo , Leo Yan , Mark Rutland , Ingo Molnar , Thomas Gleixner , Jiri Olsa , Adrian Hunter , Clark Williams , Kate Carcia , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Anne Macedo , Bhaskar Chowdhury , Ethan Adams , James Clark , Kan Liang , Thomas Richter , Tycho Andersen , Yang Jihong Content-Type: text/plain; charset="UTF-8" On Sat, 25 May 2024 at 23:22, Ian Rogers wrote: > > What to do with events with no PMU like data_read? Are they actually ambiguous? > The rule for looking up an event with no PMU specified is to try it on > every PMU - the rule is about as old as perf itself. Well, clearly you then violated that rule with your change. Or you ended up changing the rule to look them up in the wrong order. I'm not interested in theoretical breakages. I'm interested in actual _real_ and _clear_ breakages, and that commit of yours introduced them. Maybe the fix is to make sure the events are always looked up in the right order, with core events always getting priority. That said, in the *particular* case that I hit, it's even worse than that. It's not just that the wrong event was looked up - it looked up an event that DIDN'T EVEN WORK for the workload. So it's doubly broken. I don't understand why you then bring up a "what about" issue that is entirely irrelevant and would presumably never have shown the issue in the first place because it wasn't probably wasn't ambiguous, and that actually did work as an event source. Reality matters. What-about-isms don't. Linus