Skip to content

RFC scripts: convert four small Perl utilities to Python

Breno Rodrigues Alves lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scripts: convert bootgraph.pl to Pythonscripts/bootgraph.py+194 -00 replies
2/4scripts: convert checkincludes.pl to Pythonscripts/checkincludes.py+101 -00 replies
3/4scripts: convert markup_oops.pl to Pythonscripts/markup_oops.py+324 -00 replies
4/4scripts: convert profile2linkerlist.pl to Pythonscripts/profile2linkerlist.py+27 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] scripts: convert four small Perl utilities to Python

This series converts four small Perl utilities in scripts/ to Python 3, following the precedent of kernel-doc.py, spdxcheck.py, checkkconfigsymbols.py, and bpf_doc.py.

Each conversion is a faithful 1:1 port: same CLI, same output, same behavior (including pre-existing bugs, documented in the individual commit messages). All use only the Python standard library.

The four scripts are:

  - bootgraph.pl          -> bootgraph.py          (SVG boot timeline)
  - checkincludes.pl      -> checkincludes.py      (duplicate #include finder)
  - markup_oops.pl        -> markup_oops.py        (oops annotation)

- profile2linkerlist.pl -> profile2linkerlist.py (readprofile to linker list)

Tested by running the Perl and Python versions side by side on the same input; output is byte-for-byte identical for the three scripts that have verifiable output (bootgraph, checkincludes, profile2linkerlist). markup_oops requires a live oops and matching vmlinux to fully test.

Breno Rodrigues Alves (4):
scripts: convert bootgraph.pl to Python
scripts: convert checkincludes.pl to Python
scripts: convert markup_oops.pl to Python
scripts: convert profile2linkerlist.pl to Python

Signature · 1 line
2.43.0