@@ -100,6 +100,16 @@ TRACEPOINT_EVENT_INSTANCE(
)
)
+TRACEPOINT_EVENT_INSTANCE(
+ libcamera,
+ request_with_buffer,
+ request_add_buffer,
+ TP_ARGS(
+ libcamera::Request *, req,
+ libcamera::FrameBuffer *, buf
+ )
+)
+
TRACEPOINT_EVENT_INSTANCE(
libcamera,
request_with_buffer,
@@ -463,6 +463,8 @@ void Request::reuse(ReuseFlag flags)
int Request::addBuffer(const Stream *stream, FrameBuffer *buffer,
std::unique_ptr<Fence> fence)
{
+ LIBCAMERA_TRACEPOINT(request_add_buffer, this, 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> --- Changes in v2: - Change arg from private to public Request pointer --- include/libcamera/internal/tracepoints/request.tp | 10 ++++++++++ src/libcamera/request.cpp | 2 ++ 2 files changed, 12 insertions(+)