From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id E5D711FF0E3 for ; Tue, 04 Aug 2026 15:55:25 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 7944D2160B; Tue, 04 Aug 2026 15:55:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785851712; x=1786456512; darn=lists.proxmox.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=jugw6fBWtFUVU0vEeU5OcHdLx7qLJag7jCtw8CZE6rI=; b=SHxpeJALszUd87todZ/448rjbY5+2z105BYyu9+FqEXQL+Ls3oteNcw6RojBY5EBDL VR0RZtjDc2N2X5dbcdAoIiNLtfK5A+VpLPt9m3BPDFh19cCkeZ+KaHGxPmC0MWxxkHFO cUFjP7ZKVim3AWX8fnIiR/NBduIr3dXX4rlLE738XWsx+c+FmuPMiS9C45qht/bS2C5M A6iDtaWFkpgZ6LF2psMUrIdjlrxSInd2U6LMJd9E8+HAHP088aWj7Q8CuRzfcSLe8cSr Es5v9UcgWEWgGqs6QY+UFYFV2AEmHM1E8FECKa12bLyfJ3TCHqE6ujWRmuRwBTJUy/nZ YC1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785851712; x=1786456512; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jugw6fBWtFUVU0vEeU5OcHdLx7qLJag7jCtw8CZE6rI=; b=hWfCKHBEdewF+F03l1uWGjUDSgeFsKOod8S8euad2jOCxXSBNeq2vb9sZSeRG9+PzI BiCtzhhyjtLNuz1hgBs0mF4U28vmWALVNTbsRJbMAp3G9HRNIRANiOYYjl3IP9GAcLKH foWmREDSCb/iU3SoQjWsqSwHLvFTGPPTWVGwbSb4RJ99JPJChMdPQ2u6S3hVfQai7irp pEmoyjv4zefnESh59y+9JguWOrm9DQjqC7qCgk8hj2l1yM9JTvqFY0DaB3za+dgyRHO8 aoJdIBr61bU/TEOL98XizLjTUww/BH3GhUJZvyS/LqxRJNrjpbakZa59hch7xhQf2011 I0OA== X-Gm-Message-State: AOJu0YwKqZN1uN46Vey3eU4cI3GUc2HI29iQYqgeXnbSofboo2N94Hd/ p7BzBdD52/oMDinLhaMFuyTnUnwFfbJlK8rGi/Bz5dUJkC5xg1uoATr++26oSiwJiwg= X-Gm-Gg: AR+sD11er1TiOHzJUqdh1DHsMJgaWnF94M1mU5NI1JxUH/iaXT0i8Jeb6is/GJDJMWf uiEnTsmUZ5rTYcMDKbdoUGXIa2d6OT0Wa9Sh30IlYiJhQERrUmFg9lafKWXajFOIe3a7iAplcql tgA3mg8YPeWUmvq1kJTqsBEdOUqXEUhksy0ycAeens0ogiO5Y2hhubtzmZvlNhNEih7ewzGUG3C OvZ+Z3hf+dIxkLhf8RPecy5C0dr5jb6F58DEAvBJZgWTqeq5USCvnY5Roq/FNC+W3B2dinDEtwU iqrRoOG0EKqLFJaFU55pM23LgJ4LFaZkuspBmesKFYYEqE6+R81ws53q2mLc01vRXnxUWixPb8I 0bXXkqnuZc4NN+rSoNY3o6Oqj1EiNGNBqD7uRR03rjY/8ALBs3nOGyVwuO+ZK0kI+qoOb9oEvEB i4jS4S/ZFACjOb2yxaFNlp70Whal4zyf9WD0etIdEbDJ9Y4O/GMdffGXzdeNN+mZ+kMWG2wVbof DyeQ6EDmO2mDiI= X-Received: by 2002:a17:903:37c8:b0:2b2:67ca:5ff9 with SMTP id d9443c01a7336-2d051efd46amr142599405ad.0.1785851711784; Tue, 04 Aug 2026 06:55:11 -0700 (PDT) From: Kaiyang Wu X-Google-Original-From: Kaiyang Wu To: pve-devel@lists.proxmox.com Subject: [PATCH pve-manager] pveperf: make bogomips regular expression case insensitive Date: Tue, 4 Aug 2026 21:54:44 +0800 Message-ID: <20260804135444.31822-1-wukaiyang@loongfans.cn> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_ENVFROM_END_DIGIT 1 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: RRU7CMN5UWJF3ZNBENO7Y4ZNHMKHHF4P X-Message-ID-Hash: RRU7CMN5UWJF3ZNBENO7Y4ZNHMKHHF4P X-MailFrom: wukaiyang2003@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Kaiyang Wu X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 'pveperf' prints 0 BogoMIPS on arm64 due to the key in '/proc/cpuinfo' being named "BogoMIPS" instead of "bogomips". Make the regular expression case insensitive to match both "bogomips" on x86-64 and "BogoMIPS" on arm64. Signed-off-by: Kaiyang Wu --- bin/pveperf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pveperf b/bin/pveperf index 39b020e0..0ef4dbd7 100755 --- a/bin/pveperf +++ b/bin/pveperf @@ -28,7 +28,7 @@ sub test_bogomips { open(TMP, "/proc/cpuinfo"); while (my $line = ) { - if ($line =~ m/^bogomips\s*:\s*(\d+\.\d+)\s*$/) { + if ($line =~ m/^bogomips\s*:\s*(\d+\.\d+)\s*$/i) { $bogomips += $1; } } -- 2.55.0