@@ -108,6 +108,16 @@ TRACEPOINT_EVENT_INSTANCE(
)
)
+TRACEPOINT_EVENT_INSTANCE(
+ libcamera,
+ request_with_buffer,
+ request_add_buffer,
+ TP_ARGS(
+ libcamera::Request::Private *, req,
+ libcamera::FrameBuffer *, buf
+ )
+)
+
TRACEPOINT_EVENT_INSTANCE(
libcamera,
request_with_buffer,
@@ -462,6 +462,8 @@ void Request::reuse(ReuseFlag flags)
int Request::addBuffer(const Stream *stream, FrameBuffer *buffer,
std::unique_ptr<Fence> fence)
{
+ LIBCAMERA_TRACEPOINT(request_add_buffer, _d(), buffer);
+
if (!stream) {
LOG(Request, Error) << "Invalid stream reference";
return -EINVAL;
Add a tracepoint event request_add_buffer for tracing Request::addBuffer(). Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> --- include/libcamera/internal/tracepoints/request.tp | 10 ++++++++++ src/libcamera/request.cpp | 2 ++ 2 files changed, 12 insertions(+)