From nobody Tue Feb 11 15:37:16 2025 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yslth2t7dz5nl3n for ; Tue, 11 Feb 2025 15:37:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yslth29QDz3cGd for ; Tue, 11 Feb 2025 15:37:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739288236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zPSL2Yc5Tn+M2lMC1GzRStofOP5gLtVYwcbPVZRPnQo=; b=ELDexZhfoI8XmF5vutXbBP5sRy30yB5FGmeh8MVDkasFVUITlcuRVlc4qUNJ3RiLIq2S5N 5AUB8/G47KGAzmwltwCRbb6pLBYohrdmXrn3vap5o4BP7gevhTd0TeXNMlXKmqDTDdy5TX TGpsnrwLsYqZj9MxZCmJWfg4JgDCZDrOuK8/LL2Ujk3jFwDsdEdiHK4rfdq6Mfo/BsOU6B DbZeUpu9GuMonYrq/9xIke9HmZtzYTqZxfUhx3xkD2UDuDx62xEgfmuMFzBRTaulIPkhrn BS9zKbRqznX7BvhLPG9RXdH4K7GRvBy8jS5QttEq86AGZ0d/ZTsi0SjqmhV62Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739288236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zPSL2Yc5Tn+M2lMC1GzRStofOP5gLtVYwcbPVZRPnQo=; b=rrYwo2RLVxn9w2BTzfgR74ocLM8iRsGM4AHzG9gYy6pOxp1qKnQzb4ZEuqVrDkeeXP8zSI bia5SE2chSctzdgTUqK0ehbsBn22cF9OhulwzundKcT3i76asUNwPHHA7cYhMCESg2ksmJ SScNVDIyQ0t3LlrbYCGLa4Hp/jImvGGSvf4B2adnWln/dZ29EHKKbBpVw7RM3FLy4d4KKj QORXOP3zH8Fm9Wf+6SBeSkqhgk2LHiTcYllcTZ+nyeuSd+PsnVn1gGVDFNazcKCU31rA28 j/yWqyXeEa2u7npVdm1kHjFV14jz4fuV4WiUgKpQsPOl6RYNGG2nGVcSdScjiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739288236; a=rsa-sha256; cv=none; b=YXYuW4a4lya6aJxMZbsJ97RDNAlR3EYd35DB3c8yYVXX/KfXf4VCZXqfbROx3+EjOSmTP5 TJavP8Bd2rtcqpPCA49Nw173Iq/DPG5SMxvsXKbNpKTqyuSam/EJ00vKgXxDYWhrmwIPcq 5wqiR6ynmlzcGp5pAgAcw26Ly+J8NjNv+mRN50GYh8jdZ8Bo8d2oWVG5LDb0aBpjBxsYDu kQ8I4Z4zWYqCWHtlS1FsX3YUoAkrBIcnqWbeEutas6W2SVQd7xieFS8zWufy1Mx46llOkX opjyVVb7x6fV5fRDwoQC7T4TWmo3AB1ThmLTegIo4kWzRjqBJUoHXMDvZXW0TQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Yslth1RRCz3tD for ; Tue, 11 Feb 2025 15:37:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 51BFbFrA067920 for ; Tue, 11 Feb 2025 15:37:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51BFbFPM067919 for freebsd-arm@FreeBSD.org; Tue, 11 Feb 2025 15:37:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 284736] pmcstat counters do not work on heterogenous ARM Date: Tue, 11 Feb 2025 15:37:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284736 Bug ID: 284736 Summary: pmcstat counters do not work on heterogenous ARM Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: jfc@mit.edu A RockPro64 contains two types of ARM cores which I infer have different performance counters. This results in two problems. 1. The "instructions" alias does not exist. Only 30 counters are available, mostly obscure but some useful. I guess there is some logical AND of count= er names supported by the two cores? The counter list is not affected by which cpu pmcstat runs on. 2. Whether a counter counts depends on where the process is scheduled: $ for cpu in 0 1 2 3 4 5 ; do cpuset -l "$cpu" pmcstat -p ld_dep_stall echo= \\c ; done # p/ld_dep_stall=20 901148=20 # p/ld_dep_stall=20 911432=20 # p/ld_dep_stall=20 1202218=20 # p/ld_dep_stall=20 1225686=20 # p/ld_dep_stall=20 0=20 # p/ld_dep_stall=20 0=20 CPUs 0-3 are Cortex A53. CPUs 4-5 are Cortex A72. --=20 You are receiving this mail because: You are the assignee for the bug.=