Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp990498lqb; Sat, 25 May 2024 00:38:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVncY1o9RVDftUO32n2C1+XoFV9F16jjF5LFZpI01vNIw7uJUWbr4jmWbvOlTFf8/wo+rgZpgpa44k7gL6eKJPu5J72lavk68TIXlf6gA== X-Google-Smtp-Source: AGHT+IE5ftt9FeD+O6NvCKATBlFFvm/yb59Fbm5My4K0QE9mhTNmmryTzxe7ZNcm10PDfjrW39Y+ X-Received: by 2002:a17:903:22cd:b0:1f2:f090:b2bd with SMTP id d9443c01a7336-1f4486e0fdcmr50037775ad.21.1716622698956; Sat, 25 May 2024 00:38:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716622698; cv=pass; d=google.com; s=arc-20160816; b=oWSIXnhkziVgcLAgiFCnyzpR1b5/Ms6P/vwUg0b8ZG1ddtLzMrblcviBzdApuXdAmS eoQo8+DG8dXDAnzUn1NqTIEyVBBlOnpGATl38wI7qY5dYq+QfJq6Xpk/ooLg+lk0n1r+ lmGS0cIQkCeVsmlgd0jkhJLaNcvUEcGU3SJm0yHVhupZg+nCXygBn7JW8m9H9Nvtu6S0 StanTtLH7zQMgByR2C1cXeWEYJFmpoJbn76BPXa8l3VAluA+ksCh6XlA4bxGn7i9oRzR MElJ7q6EsptT6gmIJvkA1qQq29+pJHa6qEvlvg/D4dSeGktB3vJqzq4ZFLLaD2HDZi/H 4p6w== 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; bh=VjSDPJ3ndkcl6uhv0oiHbgYv63rSd+FyYBnXbtqOYhg=; fh=AKEP33qrYkJT45PJjj1wOk6N0APkWirYfDnuEKl8Cik=; b=zOCpsfVNXWNvDciFe9jwug9O+ltaqlBqPswxqFFotn1dTwUm3rxCSK/q8NDAqCH2Gd HqsedTNsE11STsLAvwfeEpDS2qCmiRLPb2buHd6uJMrrZhEmk6wdCu4KeNUSrUu6c3YB MqLhnoFUuseuGjorb52VBSi2NRiwEeXLf52Z6hyApep+j2/c84MNJM8GDQNSmJ/2fCxs 8HRMjjzNWjQ+T3Ncgn9UdAN/kIW1H6HlqBTZ68VhKJM+iciqut8J3EAv7am1zlm2adiT vm0+7bZLyECIxdL0knT7wiGqzDCfa21grNkPhX+zceg+ItkF/KVJEunY5z1/jC7CRXzT Bclg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-189303-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c7cad31si26227495ad.183.2024.05.25.00.38.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 00:38:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189303-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-189303-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189303-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 966D6282064 for ; Sat, 25 May 2024 07:38:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CC4114294; Sat, 25 May 2024 07:38:12 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 1BF9ABE6F; Sat, 25 May 2024 07:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716622691; cv=none; b=RjpNEOnBPrK9llNxp7i+gn9KK5RKstmtgLbF6cL2DerCrSZpdhqyMvIJlC3r8VHVlboOwlBlwj4VeNLzL3sp0nkxdc9TD9KS/asevhKuQbEbKS7CUXy0JXGRronGp/hvQX93y3N82RkOjCC4nuyrEwDqhSzwRKrAktEhyW9Waxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716622691; c=relaxed/simple; bh=hjnFQGsTJPR8cRFI+tzxhz1tkZh4lBxpR3/xX+fvjJY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=W48pQZumYGfPJV0Hlh5X5uU769l2W63u6NZR2T08nGKkh/A5QBr2wXrFcErZY2ygOm2XnoYwXIa7WPdhDDJeVpQOPzBaS8r4RreDEKl/c+OXLLKZthk/jzwU1QIxmYXMziQ0P5ijjvQlVKFqigWktIWM4eiPUbpmoDmYbhCJNdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-656d8b346d2so4131609a12.2; Sat, 25 May 2024 00:38:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716622689; x=1717227489; 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=VjSDPJ3ndkcl6uhv0oiHbgYv63rSd+FyYBnXbtqOYhg=; b=manLXTVNhGBqJV3TNl4vkqHosGzzf3H9fmYpKpk8sBJiS9mYZofQ8Lh0iaP7mZhXRF 0c/R3DQdmM9it0pjDpVrbuFpuImUNQtNtIz6ARfArxdq0mzYNqZDLTAImgPsZshqzpa1 /LgKcYYgR4cFfdnQXxZT1UfRVLItnQjwPMc16OHRwhGkIPjthEZlUfckUGf1BS51CpD1 ygOgPlZKoSTSgO4AR7gbDY0s0EawPO8dA5xK42MZNMAFVIKkzzRRPaH12XZAC7h7159b divceGNCiumoYVs3KlIykPhdXXDlVRQhS46MbYmNONaicVSu/rQz0zSlq1CO0w/Z6dWQ Ne/w== X-Forwarded-Encrypted: i=1; AJvYcCXgiUDUykQcBCr0GMviewfNHz/HoX2jukHYO9LaAfNtJve1eDqu2qFbLD9YbWcjTe+x1Lev9gW7wEmntDNZ1MNxaxXRMigC0PRT1ICbzWv3Lk1DM1o76o7sL/LeY6vb5N3ENzz+ei4hq4pvBHaZmA== X-Gm-Message-State: AOJu0YzFNnwFuRtuXAvqVymnKQL97Wko6U2l87Q6LcEL9HkoJcrxozrL UNmHH3O3W2T+So86pBGI/Q36zBI7N7LWgTajCKd7azud8DO2tdC3CwlFZsuRqsjO0ElwnHfwvI7 N4z2RjmF/NFeFdL2ZnJIeva2NeN4= X-Received: by 2002:a05:6a20:3cac:b0:1af:d1b2:4c21 with SMTP id adf61e73a8af0-1b212dee2dcmr5320981637.41.1716622689230; Sat, 25 May 2024 00:38:09 -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: Namhyung Kim Date: Sat, 25 May 2024 00:37:57 -0700 Message-ID: Subject: Re: [GIT PULL] perf tools changes for v6.10 To: Ian Rogers , Linus Torvalds Cc: 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" Content-Transfer-Encoding: quoted-printable Hi guys, On Fri, May 24, 2024 at 9:20=E2=80=AFPM Linus Torvalds wrote: > > On Fri, 24 May 2024 at 20:48, Ian Rogers wrote: > > > > Thanks for the report. TL;DR try putting the PMU name with the event > > name, so "cycles:pp" becomes "armv8_pmuv3_0/cycles/pp", where > > armv8_pmuv3_0 is the name of the PMU from /sys/devices. > > What? No. > > If that is the new rule, then I'm just going to revert. I'm not going > to use some random different PMU names across architectures when all I > want is just "cycles". > > In fact, the "cycles:pp" is a complete red herring. Just doing a simple > > $ perf record sleep 1 > > with no explicit expression at all, results in that same > > Error: > cycles:P: PMU Hardware doesn't support sampling/overflow-interrupts. > Try 'perf stat' > > because perf *ITSELF* uses the sane format by default. Yep, so I'm curious what makes it fail. IIUC the commit in question would convert "cycles" event to "${whatever_pmu}/cycles/" if the pmu has "events/cycles" alias in sysfs or in JSON. But it should work after that too. :( It seems my system doesn't have the alias (both in x86_64 and arm64) at least in sysfs. I think that's why I don't see the failure and maybe there's a specific hardware issue - like a M1 macbook issue? IIRC it required the exclude_guest bit to be set, but I think we handled it already so this must be a different issue. The error message is for EOPNOTSUPP, and I don't think it will set any special attributes for the default event. So I have no clue yet.. Thanks, Namhyung > > So ABSOLUTELY NO. We're not changing the rules to "You have to know > some idiotic per-architecture JSON magic". > > I don't want any excuses like this. No "You are holding it wrong". > This is a BUG. Treat it as such. > > And yes, "perf record -vv" shows that it apparently picked some insane > arm_dsu_0 event. Which just shows that trying to parse the JSON rules > instead of just having sane defaults is clearly not working. > > So here's the deal: I will revert your commit tomorrow unless you show > that you are taking it seriously and have a sane fix. > > Because no, "You are holding it wrong" is not the answer. Never was, > never will be. Things used to work, they don't work any more. That > shit is not acceptable. > > Linus