mbox series

[v3,0/4] v4l2-tracer: track changes from syncing with kernel

Message ID cover.1701450544.git.deborah.brouwer@collabora.com (mailing list archive)
Headers show
Series v4l2-tracer: track changes from syncing with kernel | expand

Message

Deborah Brouwer Dec. 1, 2023, 5:13 p.m. UTC
This patch series aims to solve the potential breakage of the v4l2-tracer
every time that v4l-utils is synced with the latest kernel headers.

Currently the v4l2-tracer autogeneration script is run by meson. If the script gets
confused by changes to the latest kernel headers, then the v4l2-tracer won’t compile.
And, even worse, the autogeneration script will have overwritten the autogenerated
files so there is no history of the changes that broke the compilation.

This series solves the problem by adding the autogenerated files to the git repository.
It stops using meson to create the files and instead, patches the v4l2-tracer whenever
v4l-utils is synced with the latest kernel headers. If compilation breaks, it is easy
to fix by just removing the v4l2-tracer patches before committing the other changes
related to the sync.


Changes in v3:
  * Rename TMPDIR to V4L2TRACERTMPDIR

Changes in v2:
  * Use a temporary directory to store the generated files
  and remove it afterward.

Deborah Brouwer (4):
  v4l2-tracer: autogenerate files that can be added to git
  v4l2-tracer: add auto-generated files to git repo
  v4l2-tracer: stop auto-generating files with meson
  sync-with-kernel.sh: create v4l2-tracer patches

 sync-with-kernel.sh                      |   27 +
 utils/v4l2-tracer/meson.build            |   55 +-
 utils/v4l2-tracer/retrace-gen.cpp        | 5664 ++++++++++++++++++++++
 utils/v4l2-tracer/retrace-gen.h          |  144 +
 utils/v4l2-tracer/trace-gen.cpp          | 3225 ++++++++++++
 utils/v4l2-tracer/trace-gen.h            |  144 +
 utils/v4l2-tracer/v4l2-tracer-gen.pl     |   12 +-
 utils/v4l2-tracer/v4l2-tracer-info-gen.h | 2419 +++++++++
 8 files changed, 11633 insertions(+), 57 deletions(-)
 create mode 100644 utils/v4l2-tracer/retrace-gen.cpp
 create mode 100644 utils/v4l2-tracer/retrace-gen.h
 create mode 100644 utils/v4l2-tracer/trace-gen.cpp
 create mode 100644 utils/v4l2-tracer/trace-gen.h
 create mode 100644 utils/v4l2-tracer/v4l2-tracer-info-gen.h