Received: from mail-dl1-f51.google.com (mail-dl1-f51.google.com [74.125.82.51]) (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 DB4994A0EF7 for ; Sun, 18 Oct 2026 12:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792328211; cv=none; b=h/lRnkJvEZAT68+GbRa+hq+n4jzr4NTmX8dfp1GDrKWiTJCFn4mt88yRC5L3KOwhioavtwUXpTilgD1OdATnDASGRsuIpSaAmkBJVAs4ADVtxxEWEeZTyW77xmkPI5PLonE0cUGfg7HQX5SfNjQkDV4Ql3tX+YuWH0plpc3gnfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792328211; c=relaxed/simple; bh=2WJTSDjAEakWpXPC/NVEOZ+BPuvaLCgPchT0JxuXVV4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UuEylJvp88cVExO6J6waeKHMwcCnO3fQi8mt21OWkxJExmYcyNHvtq02/51/+xug5KSD6Yv7aQm/h8DaIWkp5oiupTkWyIuFTjvgsXquH38C+l2gYL6gQZPIM/w9Zf5fo8Rp180u5AYBdSASiKW9wnG4XkulJU2qJbkvymCf26o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=sthafnpB; arc=none smtp.client-ip=74.125.82.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sthafnpB" Received: by mail-dl1-f51.google.com with SMTP id a92af1059eb24-16079d54c17so3158895c88.0 for ; Sun, 18 Oct 2026 05:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792328209; x=1792933009; darn=vger.kernel.org; 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=JERkWB0TDE76PWFJHk1bArxy1QoTkEsYgt43aA6L+iw=; b=sthafnpB/g8QaQsUMmsJww5liZNrt3yXIg6uCJg+Ufq7UZQmYmmKIdKhp2UYatLF24 jwoootDi2Vj2WoFVKATyJTe/5TN6QVtyiGkew5UgWZzXdxw9sJFMNcNyi0ykZsoVYTG9 RgsNaP+s8bnCTrwHJ7JmVjyjL5B/DeYPgCm57VWL5SBH15zjitjWAIAcpFA9mHipVmhU vlyvf9NyfnSbLY4pN4xfToTQFtYWu6DD4v5/eYgk6tAqDkibXrcf8CJ4I7h1aCY/9xfF VbOvVEl0KieN2THUIVQzWmvCQfuZEaQa/6aQBhDLhulzIbXooyL5azaQRAntEjN7wSdY MbJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792328209; x=1792933009; 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=JERkWB0TDE76PWFJHk1bArxy1QoTkEsYgt43aA6L+iw=; b=J9JdliL5YqGoqfvCZkL4qvOVTBAzWA7rbbZ3geK0MitZGRK/oBtWFQ8KnHLvBBbU+y 7th+AZIIozJ793HlNVaIoMOwUggxXjERpmmqQPBP2M7MVBUjT3ZtkpmKHLbVYsKOBkIk 76kX7O8gWCZpeplvfdmmU0hwpQBkjf7U8lznmP2Ddzm6pF7ga8Or2Koln1bS54YXRvPg 8Ajxs35wXwC+mdjrQYITj0U+R+iNI37qSFCNPJ27dZSpuMAhh2DSzvqfKaB9Yq8oGM32 Lcete7GSg0AZAyC7RU/kA6C/QQvzol4F1wfqxUxFjLxn1xeKzcGzkM3IqZhzkAj1FLwD Vf/g== X-Forwarded-Encrypted: i=1; AKwUvBybW4Mo86Xq0797PjXIaxVfS/pj8+hXuJbD3Q5vgg0+YuomvqntSh5VUnD9RBFCNsGayCFHxV8wOGyTucT5R6E=@vger.kernel.org X-Gm-Message-State: AFq9FYKPybStoUIpu1iKF21DuVMo1vmxPws/9uW5juHfC8gN/fVcZnzx bAMZ4/n8uwRCznL7elOIGYPYfC1+vVKZRHdCZQnxD72/cuskew/wzsjb X-Gm-Gg: AYBFou1E5yME3lbgEHVXjFjMTChaxbggqQoa32/WSSLhI/vcmrFZbca3Gh6LgXDdLaH Eagp6te/BGnwJoOnwU/02USbbF4ERHkKMqeIZwSSTwMbjtoWpadShskqtnH0Ai8uK2qvnX43udX uh+gL7U7dL41SkEtWMrK7gEZunu4WkZE7kT+5Fa2pi6cpmbY+34Xv53L8ywggkB0tDyOXyFW0p4 iQ6AfNSFhW2YhPHt+fEOMuYfrDZZTUFHQM1fD7x0mfU2jzPr+t1eWLvVBH0ByHCMhwBJfnQKZQn MU1+z2qgOehh5tqwqViJjfxj7d3DRiMrjYpdfEbyam479QGNrzmhovoV5uzyG8nR1JxrfgSAwPw C+597kaY2sH0tZqJWA/Ej9YRi7rRiv1Z9X9e/ytIUdd4Zxk0I4HZOMd591l76dm2ksDCerJvxGd 3WNVto53FVJgsVqnNqOz1qZ1ILGxF47rLd0qjSGRhDuu7fKX28rTdFDhgT/mUMPGlwGVZxDdko2 zGk9BbnuEOkaXrV/EklC1zsAj4cqPcoXVYhnAGd6w== X-Received: by 2002:a05:701b:2816:b0:151:d6e5:596b with SMTP id a92af1059eb24-18511ad88c3mr6664435c88.9.1792328208664; Sun, 18 Oct 2026 05:56:48 -0700 (PDT) Received: from Biostar-A520MT.. ([187.94.15.112]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1831c4d4675sm20404082c88.21.2026.10.18.05.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Oct 2026 05:56:46 -0700 (PDT) From: Breno Rodrigues Alves To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , Shuah Khan , Breno Rodrigues Alves Subject: [RFC PATCH 0/5] perf/tests: convert Perl test helpers to Python Date: Sun, 18 Oct 2026 09:56:36 -0300 Message-ID: <20261018125641.23064-1-breno3011alves@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series converts five Perl test helpers in tools/ to Python 3, continuing the Perl-to-Python conversion effort for the kernel's auxiliary scripts. Each conversion is a faithful 1:1 port: same CLI, same output, same exit codes. All use only the Python standard library. The five scripts are: - prefix.pl -> prefix.py - check_all_patterns_found.pl -> check_all_patterns_found.py - check_no_patterns_found.pl -> check_no_patterns_found.py - check_all_lines_matched.pl -> check_all_lines_matched.py - check_errors_whitelisted.pl -> check_errors_whitelisted.py All five were verified byte-for-byte identical to their Perl counterparts on synthetic inputs. These files are used by perf test shell scripts to validate test output; they have no dependency on the perf binary or its Python bindings, so they can be converted independently. Breno Rodrigues Alves (5): perf/kselftest: convert prefix.pl to Python perf/tests: convert check_all_patterns_found.pl to Python perf/tests: convert check_no_patterns_found.pl to Python perf/tests: convert check_all_lines_matched.pl to Python perf/tests: convert check_errors_whitelisted.pl to Python Breno Rodrigues Alves (5): perf/kselftest: convert prefix.pl to Python perf/tests: convert check_all_patterns_found.pl to Python perf/tests: convert check_no_patterns_found.pl to Python perf/tests: convert check_all_lines_matched.pl to Python perf/tests: convert check_errors_whitelisted.pl to Python .../shell/common/check_all_lines_matched.py | 45 +++++++++++++++ .../shell/common/check_all_patterns_found.py | 35 ++++++++++++ .../shell/common/check_errors_whitelisted.py | 55 +++++++++++++++++++ .../shell/common/check_no_patterns_found.py | 35 ++++++++++++ tools/testing/selftests/kselftest/prefix.py | 24 ++++++++ 5 files changed, 194 insertions(+) create mode 100755 tools/perf/tests/shell/common/check_all_lines_matched.py create mode 100755 tools/perf/tests/shell/common/check_all_patterns_found.py create mode 100755 tools/perf/tests/shell/common/check_errors_whitelisted.py create mode 100755 tools/perf/tests/shell/common/check_no_patterns_found.py create mode 100755 tools/testing/selftests/kselftest/prefix.py -- 2.43.0