All of lore.kernel.org
 help / color / mirror / Atom feed
From: Deborah Brouwer <deborah.brouwer@collabora.com>
To: linux-media@vger.kernel.org
Cc: hverkuil-cisco@xs4all.nl,
	Deborah Brouwer <deborah.brouwer@collabora.com>
Subject: [PATCH 0/4] v4l2-tracer: track changes from syncing with kernel
Date: Mon, 27 Nov 2023 12:09:10 -0800	[thread overview]
Message-ID: <cover.1701114910.git.deborah.brouwer@collabora.com> (raw)

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.

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

 .gitignore                               |    1 +
 sync-with-kernel.sh                      |   25 +
 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 +++++++++
 9 files changed, 11632 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

-- 
2.41.0


             reply	other threads:[~2023-11-27 20:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27 20:09 Deborah Brouwer [this message]
2023-11-27 20:09 ` [PATCH 1/4] v4l2-tracer: autogenerate files that can be added to git Deborah Brouwer
2023-11-27 20:09 ` [PATCH 2/4] v4l2-tracer: add auto-generated files to git repo Deborah Brouwer
2023-11-27 20:09 ` [PATCH 3/4] v4l2-tracer: stop auto-generating files with meson Deborah Brouwer
2023-11-27 20:09 ` [PATCH 4/4] sync-with-kernel.sh: create v4l2-tracer patches Deborah Brouwer
2023-11-29  9:00   ` Hans Verkuil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1701114910.git.deborah.brouwer@collabora.com \
    --to=deborah.brouwer@collabora.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.