Linux Perf Users
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] perf/tests: convert Perl test helpers to Python
@ 2026-10-18 12:56 Breno Rodrigues Alves
  2026-10-18 12:56 ` [RFC PATCH 1/5] perf/kselftest: convert prefix.pl " Breno Rodrigues Alves
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Breno Rodrigues Alves @ 2026-10-18 12:56 UTC (permalink / raw)
  To: linux-kernel, linux-perf-users, linux-kselftest
  Cc: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, Shuah Khan,
	Breno Rodrigues Alves

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


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2026-10-18 13:46 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-18 12:56 [RFC PATCH 0/5] perf/tests: convert Perl test helpers to Python Breno Rodrigues Alves
2026-10-18 12:56 ` [RFC PATCH 1/5] perf/kselftest: convert prefix.pl " Breno Rodrigues Alves
2026-10-18 13:01   ` sashiko-bot
2026-10-18 12:56 ` [RFC PATCH 2/5] perf/tests: convert check_all_patterns_found.pl " Breno Rodrigues Alves
2026-10-18 13:02   ` sashiko-bot
2026-10-18 12:56 ` [RFC PATCH 3/5] perf/tests: convert check_no_patterns_found.pl " Breno Rodrigues Alves
2026-10-18 13:03   ` sashiko-bot
2026-10-18 12:56 ` [RFC PATCH 4/5] perf/tests: convert check_all_lines_matched.pl " Breno Rodrigues Alves
2026-10-18 13:07   ` sashiko-bot
2026-10-18 12:56 ` [RFC PATCH 5/5] perf/tests: convert check_errors_whitelisted.pl " Breno Rodrigues Alves
2026-10-18 13:02   ` sashiko-bot
2026-10-18 13:30 ` [RFC PATCH v2 0/2] perf: convert Perl test helpers " Breno Rodrigues Alves
2026-10-18 13:30   ` [RFC PATCH v2 1/2] perf/kselftest: convert prefix.pl " Breno Rodrigues Alves
2026-10-18 13:35     ` sashiko-bot
2026-10-18 13:30   ` [RFC PATCH v2 2/2] perf/tests: convert check_*.pl helpers " Breno Rodrigues Alves
2026-10-18 13:34     ` sashiko-bot
2026-10-18 13:43   ` [RFC PATCH v3 0/2] perf: convert Perl test " Breno Rodrigues Alves
2026-10-18 13:43     ` [RFC PATCH v3 1/2] perf/kselftest: convert prefix.pl " Breno Rodrigues Alves
2026-10-18 13:46       ` sashiko-bot
2026-10-18 13:43     ` [RFC PATCH v3 2/2] perf/tests: convert check_*.pl helpers " Breno Rodrigues Alves
2026-10-18 13:45       ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox