Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp895631lqb; Fri, 24 May 2024 18:32:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFSS73aggF6O2/G8svxHYTetw4mYLTk4UYOWN4RYtR8xaHlc34ZjiEwuVDDjEOsH/Cd4oXkJnUm7RLu2s4lFubBIaNZ1Vm8XNJhZx2jw== X-Google-Smtp-Source: AGHT+IEpc7JGOw676LP+sz/Rh+TQkL4BZ++S7eM/Y4ph7+luZDTXTXuVtMNQjAF53f3ua4UEErLi X-Received: by 2002:a17:903:2310:b0:1f3:cb7:b0ef with SMTP id d9443c01a7336-1f4494f2365mr47152205ad.51.1716600761999; Fri, 24 May 2024 18:32:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716600761; cv=pass; d=google.com; s=arc-20160816; b=BalNPY3F3ZCbZftYSQB6gtx7h3BzOqGjUSO9DHKt+c2kV0rD61py59MzT+X204HGEc lvH+GzNH7VHJeF01Ixj+y18SFlXhXVHkuDuQhMprX4qR9w6MtK2o8INI34gwOM5I4kgM uRAT7EsBLv2YvoH5vx452qHTOYDt0jowDOvXxeSbPz5BLFr+QJ+flmrvDalJrU2+nd47 cLkupd5M81MXb1qqzBICVc0xLG9kKTjIICaZJWfaV4SxjMbLO18LXqFx8zcrec7faPhW pnKnxYYdUIfMDNiBauz+cMAcb5RgKRF1L3jZcOhAArMZLiIM0VELlPdgfIcseAthiuH6 NCXg== 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=lAjYvK5/+oIgbwyHngh2RKpRp6/A9MjgsXDVBo21WwI=; fh=FApMpfcCxrYunWuop1xM6mbE+NS4ZnbHenZjnMXHQ+8=; b=BB4i7qSUfeB5by/Sm3SVZJt63mSS+ise2m/LhUXrqogDOitRApfz0i8UpFVAPcdqnv PacqSsxEVgWocqVmKfCo9hifZ/+b61pF9C9BfBt21nb/DDlDIeRzNXT7DQ/aw88qiypK prnghPP/630dy/EMu816kaYRFbfHjO6SR5ZWfup0rbCR2HXLuLid4FW2Xhjy5jumN/Za t75HPSTEpgFAznccMHwzO3nT94rHP1roY1zSNKfs7o7bBGHccihBrh9fZFxiqvj5BiX7 uOjt/mZfvhs22b7MIsZvbcG8iUdvqZfc7pA/aM0LD1CtgpPqlwsahYxy4BnN0/L7msF4 iL1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YeOuKaph; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189232-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c7922cbsi22609625ad.116.2024.05.24.18.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 18:32:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189232-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=@linux-foundation.org header.s=google header.b=YeOuKaph; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189232-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 97EFBB216F7 for ; Sat, 25 May 2024 01:32:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 160BA138E; Sat, 25 May 2024 01:32:16 +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="YeOuKaph" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 398847E1 for ; Sat, 25 May 2024 01:32:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716600735; cv=none; b=Xg9geqfwxHxtvxKMtSEuK330EuUU9qCFW7Y8eyfhoE350n25mPaFZe7XygZO79GH1IR5BBvfELALMtR05df8du+ixPRpLRjuuMVQCpEV5VC8b7MgjmG75MLR8gK9uQmRBiBsnz0ycfo+/sINctgJ3X+d9b4CdYJwwr2RHXxwshg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716600735; c=relaxed/simple; bh=AmRb1euoDS4vvG+sR3/5zbY42oCpsiLFEgxly6UEdkc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BwTnDKr1ysAGKR0Mxh9o/uDNEN+y+WLvtxsuyu/KCEJUDe7FtjKixT0wyPdBEa1Wk45o+i+HDUGs9uit66weVxq+Hv1+Ut/ZgnUSWFu6mVyKo2fEH5d9mG4M+JhRDjbGXSoaR7A/hagujGB39bLjAJKR7jrtY7ppwHB5RJbTIrU= 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=YeOuKaph; arc=none smtp.client-ip=209.85.208.46 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-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-57822392a0dso6382940a12.0 for ; Fri, 24 May 2024 18:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1716600731; x=1717205531; 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=lAjYvK5/+oIgbwyHngh2RKpRp6/A9MjgsXDVBo21WwI=; b=YeOuKaphNNFMJH7iD7fULvq30JjIpg1MzZA3LwdMOomtdyjWzUTNRZVMWUfpgQeP6y ALC6FR9rLXNO7qXErpsKHMWPcoX40qx2SbMre9XJdAGISpUnJ6DniP/R1l5FhMvwQqBa qTIvxXsSni+tDY8uoyTZVZNLbXSc9Yt18jqeo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716600731; x=1717205531; 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=lAjYvK5/+oIgbwyHngh2RKpRp6/A9MjgsXDVBo21WwI=; b=mJrgddZIJHziYTW4UnIR2udCpuXAQErj1pWW6uFFK0o1O5zjdQeUmeiZoUKi3nZhPJ ozVhCqkNXpnAI+Y3zSOM+Evm9YeIxvzxsmANPk4UqmR3ycE3W+feYPJrJYgv2S85eeH2 FhxhPNyQ4i1EOFXwILlWp7t1UF7nVFj+1XZJMhLt/zYTcr/1TFs+7fdyoiQJ5Tkg996g tgMlhJpPlI3oQTH+cPGSJrW0hrx9u5dJ8AMIqrrESxGz/UMk4hpW6mBIk8imAiYHUdNV XYlN3jIcGClHE33gQvR1zVYTu2BgT3DT6RE43j6IkYJ8i8fRgYzKSeyHyGdNv+nWE1jU mpcA== X-Forwarded-Encrypted: i=1; AJvYcCVPAqu2EDVd8dTWZz0+PBiita1fTf7t/mU+K4nTLKuKsb8c+ilRqOnAD+kxOKcNfwss34lyAZV64JQFgi/ZwdiMZ24t4W3f7107i/7Z X-Gm-Message-State: AOJu0Yzva3pPcdELvSX/JUXFuzhMbps1/GvSUQ/JVZphhb11Bty4bFM/ PAiQaRmQnfwyDmFGPSGKq7eC2NEkQh8kli68vTqW5exW0ffolPW0WfQooy620HqCH3DGYyg09HP WU4yxbQ== X-Received: by 2002:a50:951e:0:b0:578:c161:525d with SMTP id 4fb4d7f45d1cf-578c161554dmr102333a12.25.1716600731346; Fri, 24 May 2024 18:32:11 -0700 (PDT) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com. [209.85.218.54]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57860a2eab3sm1427494a12.28.2024.05.24.18.32.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 May 2024 18:32:10 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a61b70394c0so726293566b.1 for ; Fri, 24 May 2024 18:32:09 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWmmJmVKs811vdvuDxdkZcUTWdz5npou1fhR8JZIQiR5YlgFPkme3dtwlQFrBNFPdLKpjQcs+kd2rsPHNKWh4WJiw93SiLwh0ZkbE10 X-Received: by 2002:a17:906:55ce:b0:a59:c3dd:db2a with SMTP id a640c23a62f3a-a62641aaf08mr236390966b.11.1716600729273; Fri, 24 May 2024 18:32: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: <20240521192614.3937942-1-acme@kernel.org> From: Linus Torvalds Date: Fri, 24 May 2024 18:31:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] perf tools changes for v6.10 To: Arnaldo Carvalho de Melo , Ian Rogers Cc: Ingo Molnar , Thomas Gleixner , Jiri Olsa , Namhyung Kim , 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 , Arnaldo Carvalho de Melo Content-Type: text/plain; charset="UTF-8" On Tue, 21 May 2024 at 12:26, Arnaldo Carvalho de Melo wrote: > > perf tools fixes and improvements for v6.10: This actually broke 'perf' completely for me on arm64. With a 6.9 version of 'perf', I can do this: perf record -e cycles:pp make -j199 and it all works fine. With the current -git version, when I do the same, I instead get Error: cycles:pp: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat' and after trying desperately to chase down what went wrong on the kernel side, I finally figured out that it wasn't a kernel change at all, it was the tooling that had changed. I did a 'git bisect', and it says 617824a7f0f73e4de325cf8add58e55b28c12493 is the first bad commit commit 617824a7f0f73e4de325cf8add58e55b28c12493 Author: Ian Rogers Date: Mon Apr 15 23:15:25 2024 -0700 perf parse-events: Prefer sysfs/JSON hardware events over legacy and very clearly this does *NOT* work at all for me. I didn't notice until now, simply because I had been busy with the merge window, so I hadn't been doing any profiles, but the merge window is calming down and the end is nigh, and I just wasted more time than I care to admit trying to figure out what went wrong in the kernel. And no, I don't speak JSON, and I have *no* idea what the legacy events are. Plus I'm not very familiar with the arm64 profiling etc anyway, so I'm just a clueless user here. I *can* confirm that just reverting that commit makes that trivial "perf record" work for me. So the bisect was good, and it reverts cleanly, but I don't know _why_ my arm64 setup hates it so much. Linus