From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4A9EC61D92 for ; Tue, 21 Nov 2023 12:09:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232257AbjKUMJD (ORCPT ); Tue, 21 Nov 2023 07:09:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234198AbjKUMJB (ORCPT ); Tue, 21 Nov 2023 07:09:01 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A71C3185 for ; Tue, 21 Nov 2023 04:08:55 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 42BE542118; Tue, 21 Nov 2023 12:08:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1700568533; bh=izpovA0XHb89VRrGlum7I7YsipyerFuXhLb0jEFlzB4=; h=Date:To:From:Subject:Cc; b=o3tsAP39aOWCf2InCItbLug8RNYooAAn10p4t1Uiq4fCQxp3UcnqgJoU3XuEb8frn pGWdSs8OVwDZAlJy68MEs6p/W4cfxudO1LppS5ET7Nmi7uQVWSDfwk/0tu3Fec59at 4pN1uJ8uijvfztdmQNmWRIDctx2BtjAVN0qCpFEVbC0ISw/SCK+ctX5Jg2Aa1ma+aN +I/fACBQJE5HBd+J4V1kZIfGKA9jfM0+Os9M4hlIdy68mTYe/Ti4p+rAKpdfj2MlhU H3Wh+bSDZWP8qopJxkHcHkt6hf2CIFt3v5zKs1X0NAOBWHYrRwSgA6pW5AzeScdFQ4 lHVsG8gD6Fs7g== Message-ID: <08f1f185-e259-4014-9ca4-6411d5c1bc65@marcan.st> Date: Tue, 21 Nov 2023 21:08:48 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: linux-perf-users@vger.kernel.org, LKML From: Hector Martin Subject: [REGRESSION] Perf (userspace) broken on big.LITTLE systems since v6.5 Cc: Marc Zyngier , Asahi Linux Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Perf broke on all Apple ARM64 systems (tested almost everything), and according to maz also on Juno (so, probably all big.LITTLE) since v6.5. Test command: sudo taskset -c 0 ./perf stat -e apple_icestorm_pmu/cycles/ -e apple_firestorm_pmu/cycles/ -e cycles ls Since this is taskset to CPU #0 (LITTLE core, icestorm), only events for icestorm are expected. I bisected the breakage to two distinct points: 5ea8f2ccffb is the first bad commit. With its parent, the output is as expected (same as v6.4): 3,297,462 apple_icestorm_pmu/cycles/ apple_firestorm_pmu/cycles/ (0.00%) cycles (0.00%) With 5ea8f2ccffb everything breaks: apple_icestorm_pmu/cycles/ apple_firestorm_pmu/cycles/ cycles (0.00%) Somewhere along the way to 82fe2e45cdb00 things get even worse (didn't bother bisecting this range). With its parent: apple_icestorm_pmu/cycles/ apple_firestorm_pmu/cycles/ apple_icestorm_pmu/cycles/ apple_firestorm_pmu/cycles/ Then 82fe2e45cdb00 leads to the current v6.5 behavior: apple_icestorm_pmu/cycles/ (0.00%) apple_firestorm_pmu/cycles/ (0.00%) cycles (0.00%) If I taskset the task to CPU#2 (big core, firestorm), I get events: 1,454,858 apple_icestorm_pmu/cycles/ 1,454,760 apple_firestorm_pmu/cycles/ 1,454,384 cycles So the current behavior is that all output seems to come from the firestorm PMU event counter, regardless of requested event. This is all unchanged and still broken in v6.7-rc2. - Hector