From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] apitrace: add replay support
Date: Sun, 14 Dec 2025 14:10:43 +0100 [thread overview]
Message-ID: <20251214131043.75281-2-l.stach@pengutronix.de> (raw)
In-Reply-To: <20251214131043.75281-1-l.stach@pengutronix.de>
Add option to build eglretrace to replay captured traces
on the target device.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/apitrace.in | 12 ++++++++++++
rules/apitrace.make | 6 +++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/rules/apitrace.in b/rules/apitrace.in
index 9aefad123e46..450b5bdac1db 100644
--- a/rules/apitrace.in
+++ b/rules/apitrace.in
@@ -8,6 +8,18 @@ config APITRACE
select ZLIB
select LIBPNG
select BROTLI
+ select WAFFLE if APITRACE_REPLAY
prompt "apitrace"
help
Tools for tracing OpenGL, Direct3D, and other graphics APIs.
+
+if APITRACE
+
+config APITRACE_REPLAY
+ tristate
+ prompt "apitrace replay"
+ help
+ Build apitrace tools to replay a captured trace on the target
+ system.
+
+endif
diff --git a/rules/apitrace.make b/rules/apitrace.make
index 494050f258cb..fdd721fe39f8 100644
--- a/rules/apitrace.make
+++ b/rules/apitrace.make
@@ -69,7 +69,7 @@ APITRACE_CONF_OPT := \
-DENABLE_STATIC_LIBSTDCXX=OFF \
-DENABLE_STATIC_SNAPPY=SNAPPY \
-DENABLE_TESTS=OFF \
- -DENABLE_WAFFLE=OFF \
+ -DENABLE_WAFFLE=$(call ptx/onoff, PTXCONF_APITRACE_REPLAY) \
-DENABLE_X11=OFF
# ----------------------------------------------------------------------------
@@ -87,6 +87,10 @@ $(STATEDIR)/apitrace.targetinstall:
@$(call install_copy, apitrace, 0, 0, 0755, -, /usr/bin/apitrace)
+ifdef PTXCONF_APITRACE_REPLAY
+ @$(call install_copy, apitrace, 0, 0, 0755, -, /usr/bin/eglretrace)
+endif
+
@$(call install_lib, apitrace, 0, 0, 0644, apitrace/wrappers/egltrace)
@$(call install_finish, apitrace)
--
2.47.3
prev parent reply other threads:[~2025-12-14 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-14 13:10 [ptxdist] [PATCH 1/2] apitrace: version bump 11.1 -> 13.0 Lucas Stach
2025-12-14 13:10 ` Lucas Stach [this message]
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=20251214131043.75281-2-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox