From nobody Mon Feb 23 13:33:46 2026 X-Original-To: dev-commits-src-branches@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 4fKMJB6VmCz6TNyZ for ; Mon, 23 Feb 2026 13:33:46 +0000 (UTC) (envelope-from git@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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fKMJB4WJPz3Kq7 for ; Mon, 23 Feb 2026 13:33:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771853626; 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=FyMOARZS5yEwU5D3R0X8si9j8VpPhhxyEXWgKESTrtc=; b=q6DUUnN07EEPs4JMOs6/RPn2tMhD+Yz0qPaiLiJklA6HEHXcxMHq32CBgMNEJ6t8+XhO8Z jXl27UpCGZbnKDofe2KZSY/6uddwyi9nfVh7+8DxmYmowkCWT3wRhqNHHw48TNtuOhyd9I TzvwG12HTrrXhe34YAZU/bgLC8Fh996/nIyOp3hhJRNLD1BMAbsLdFu/S6T10VblxP5dlj bWTWzgoHRah/9RjAOySjFWwpzRMAF/5XxI8C5kpAUDRzkMMccNOl2vnpQRaQVeBWoMorYg /2a7leELVKABAm8dcLZ/pKGQCxone0wWmIu3OI5zQ3KcIWaOD4cBCdwxdg0YKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771853626; a=rsa-sha256; cv=none; b=oSjGi67TexAKZh6qU58c8wKw2G1W8WG/KhvsHBA91DN2vHfe2s5bnh2vs2uVm7VNVzLMHl GkCMhd4ekGBamalG6QnCbOtE2oeJj5WJs0Sxfbt4zZhnXsiOF2L/cSwpU2qOpDlqLld8LP +gep7AT0EwE8uxA1rDLapODugwC/sIDs1un35J17zsUVhmMU1f4smGJbdKpDKPIuwWzVME oDiBcIjeFIz9aWPUujb0YKopq/AdjOS3yGY2lCg9ztGOVspYarv9EyANdZXJ9zovPGsdVF Xej1Qiormo7cavl99OqWT3WRprB+PH0AwXpodOJo7GpyM3oIt0jc07VwbyqrGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771853626; 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=FyMOARZS5yEwU5D3R0X8si9j8VpPhhxyEXWgKESTrtc=; b=PufiNDVxOYfYV7/i7L8XTyJb1WZ3QwxBQE7U3eKrTNJ3MubYt7Pnr13s/xw2qrRlc1lXRb je8p5qEPwv7ppTpjNmhN3B59UEuKw7KR2kN+S0NDbX7hjGVY7TtEolPUNWzOvAb6JbcOR7 oCO9VyeSsbAxZDx+UJxNyCu4Sd34qlzkcqS1jflVzt93lOldGXoxpfJoyhcMhSLVb/32iu Q1JRNzfq05uMbqvlzoWlvyCYxJ0QIxenSFX9Mxsats5IK3grSCox+TmTF5vr3y+5i3kQhM MQ2S+xzbwe1zWofldmb3kxwMjuORfW/nCxp/g8wndbVJllg1yH3Fif7Pmzy7lA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fKMJB41DkzXgZ for ; Mon, 23 Feb 2026 13:33:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46bae by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Feb 2026 13:33:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: George V. Neville-Neil Subject: git: 329655d89d9f - stable/14 - Correct the data collection arguments. Add proper tempdirs. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gnn X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 329655d89d9fdb03eac1dc0fda0aae3de61c0b93 Auto-Submitted: auto-generated Date: Mon, 23 Feb 2026 13:33:46 +0000 Message-Id: <699c573a.46bae.1c570d3a@gitrepo.freebsd.org> The branch stable/14 has been updated by gnn: URL: https://cgit.FreeBSD.org/src/commit/?id=329655d89d9fdb03eac1dc0fda0aae3de61c0b93 commit 329655d89d9fdb03eac1dc0fda0aae3de61c0b93 Author: George V. Neville-Neil AuthorDate: 2026-01-06 08:17:38 +0000 Commit: George V. Neville-Neil CommitDate: 2026-02-23 13:33:31 +0000 Correct the data collection arguments. Add proper tempdirs. (cherry picked from commit e018fedef0a6389240322da9fa4b9fa9971f6e59) --- tools/test/hwpmc/pmctest.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/test/hwpmc/pmctest.py b/tools/test/hwpmc/pmctest.py index f54541aeea1e..8accdf09e69a 100755 --- a/tools/test/hwpmc/pmctest.py +++ b/tools/test/hwpmc/pmctest.py @@ -20,10 +20,12 @@ # prompt would go to stdout you won't see it, just press return # to continue or Ctrl-D to stop. +import sys import subprocess from subprocess import PIPE import argparse import tempfile +from pathlib import Path def gather_counters(): """Run program and return output as array of lines.""" @@ -50,8 +52,10 @@ def main(): print("no counters found") sys.exit() + program = Path(args.program).name + if args.exercise == True: - tmpdir = tempfile.mkdtemp() + tmpdir = tempfile.mkdtemp(prefix=program + "-", suffix="-pmc") print("Exercising program ", args.program, " storing results data in ", tmpdir) for counter in counters: @@ -59,8 +63,7 @@ def main(): continue if args.exercise == True: p = subprocess.Popen(["pmcstat", - "-O", tmpdir + "/" + args.program + "-" + counter + ".pmc", - "-g", + "-O", tmpdir + "/" + program + "-" + counter + ".pmc", "-P", counter, args.program], text=True, stderr=PIPE) result = p.communicate()[1]