From a36cde7834c114fd14ef07781742b5aa25d0b5d9 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 2 Mar 2021 15:50:41 +0000 Subject: tracing: pipeline_handler: Queue Requests Add tracing to the base pipeline handler class to track when requests are queued. Tracing is already available for other Request operations, but queuing a Request is not an operation handled by the Request itself. Add the tracepoint to the PipelineHandler::queueRequest() so the lifetime of a Request can be viewed when tracing. Signed-off-by: Kieran Bingham Reviewed-by: Paul Elder Signed-off-by: Kieran Bingham --- include/libcamera/internal/tracepoints/request.tp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/libcamera/internal/tracepoints/request.tp b/include/libcamera/internal/tracepoints/request.tp index 7ffc6061..9e872951 100644 --- a/include/libcamera/internal/tracepoints/request.tp +++ b/include/libcamera/internal/tracepoints/request.tp @@ -48,6 +48,15 @@ TRACEPOINT_EVENT_INSTANCE( ) ) +TRACEPOINT_EVENT_INSTANCE( + libcamera, + request, + request_queue, + TP_ARGS( + libcamera::Request *, req + ) +) + TRACEPOINT_EVENT_INSTANCE( libcamera, request, -- cgit v1.2.1