From patchwork Fri Dec 9 08:19:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17960 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 7D89BBDE6B for ; Fri, 9 Dec 2022 08:20:01 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4765063351; Fri, 9 Dec 2022 09:20:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1670574001; bh=6WIFo5utB76imWZ9s+f10d/k/eBUWdAREDOOFKKbTdU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xHCm77YpYTRbwF4Wt/TNrjYF+sNipnrv/lhBgN37HhZrZWbLVMGP6JT4pGepksiTa eSUGdkU6In73NiXgo/A4wABqQXrd3KPhDkoBTubOagKq75k67JSv+zB9J5urde88Ta 0JClHluTWajZqv7V8blpuYY8FIFk82WZnm/inI5JF7dOpuFHiUKh7c2LCcNTRxHVaQ Xp/Y8ZR/KWgNYH7Wsd2t0DXUEXydZzvOmbC338bVCjJ6SOOjBcjthwBXlxEz60uSDH KVkNXCiaVorftxPRMUaC4gc2lD08tHznycVKOHL1PdUxE11XVOQwdBR5TErn1yL5gT 7GM1aVmN80Irg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BA4626334A for ; Fri, 9 Dec 2022 09:19:57 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="QvwC99zw"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5DD7C480; Fri, 9 Dec 2022 09:19:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670573997; bh=6WIFo5utB76imWZ9s+f10d/k/eBUWdAREDOOFKKbTdU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QvwC99zwFREZelk/bMZHD6NCG+aOhNH6NgyDyZJk4xM/TfB8tQQNDen20wJbDr8JF qJjMJyCZRB5BnqUcCpnKyjAMNnKomsRPtVILyOoTcyIWDzo0XGMI9czR2l6zXnDKYp LHBw4uyEeRHIVqPwlsKgJZqpCrxvzg4CTheOFyrM= To: libcamera-devel@lists.libcamera.org Date: Fri, 9 Dec 2022 17:19:34 +0900 Message-Id: <20221209081937.598303-2-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221209081937.598303-1-paul.elder@ideasonboard.com> References: <20221209081937.598303-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/4] tracepoints: request: Add private pointer to request_construct X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Since some Request tracepoints print the public pointer and some print the private pointer, print both pointers in the constructor tracepoint so that they can be used to associate with the other request tracepoints. Signed-off-by: Paul Elder --- include/libcamera/internal/tracepoints/request.tp | 13 ++++++++++--- src/libcamera/request.cpp | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/include/libcamera/internal/tracepoints/request.tp b/include/libcamera/internal/tracepoints/request.tp index f1e54497..491c7705 100644 --- a/include/libcamera/internal/tracepoints/request.tp +++ b/include/libcamera/internal/tracepoints/request.tp @@ -8,6 +8,7 @@ #include #include +#include TRACEPOINT_EVENT_CLASS( libcamera, @@ -22,12 +23,18 @@ TRACEPOINT_EVENT_CLASS( ) ) -TRACEPOINT_EVENT_INSTANCE( +TRACEPOINT_EVENT( libcamera, - request, request_construct, TP_ARGS( - libcamera::Request *, req + libcamera::Request *, req, + libcamera::Request::Private *, priv + ), + TP_FIELDS( + ctf_integer_hex(uintptr_t, request, reinterpret_cast(req)) + ctf_integer_hex(uintptr_t, priv, reinterpret_cast(priv)) + ctf_integer(uint64_t, cookie, req->cookie()) + ctf_enum(libcamera, request_status, uint32_t, status, req->status()) ) ) diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp index 949c556f..b9fb17d6 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -356,7 +356,7 @@ Request::Request(Camera *camera, uint64_t cookie) */ metadata_ = new ControlList(controls::controls); - LIBCAMERA_TRACEPOINT(request_construct, this); + LIBCAMERA_TRACEPOINT(request_construct, this, _d()); LOG(Request, Debug) << "Created request - cookie: " << cookie_; } From patchwork Fri Dec 9 08:19:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17961 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 75658C3284 for ; Fri, 9 Dec 2022 08:20:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CDB816334A; Fri, 9 Dec 2022 09:20:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1670574001; bh=4sZpb9JY4wUafyIosdD0krk2mfwlOGMSoX7LZqoahP8=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=mJ/x+AjF0dv++CHfSgKAcdVHW/3M+5xsU2K/X73+ThKFKExejk57RkuhqHh+Cs6PA cqPFlZV6xhK/tLZ/QpM/+/4LJWv26Vzt4Zqb2uwJKYKvHXp366M+ECb1k/Du+hkNAN 2VUFebDCXT1obKtAlrNVuuolKfQSdMI45C8PilYY50KO5iUP9+96xDlGF/XkHzo792 T+si+nVqt38QMyS2t3tgd2IeJqcAmLaiTGZY3YK4zmNArmtlcvJrDy2XzO6TpQS76+ 8MXMGsy8S452tXpuBPjMHtV1ff2CiimSFhG1LfUMye3L6YZ7bqem+bPb2DFaFTs2kp Fbr2QB8w2BOeQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7848D6334B for ; Fri, 9 Dec 2022 09:19:59 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="q8EBBlZt"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1DE80480; Fri, 9 Dec 2022 09:19:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670573999; bh=4sZpb9JY4wUafyIosdD0krk2mfwlOGMSoX7LZqoahP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q8EBBlZt8OGzEdi6LqL4AAhmiqfI4T/khO6hxwYNBOw2k3+vY8nZM4qWqvJuD8pPq +azddJjFfBBM9EhKujfIq8MwHQRjHUEX5+MiJh+pRgmtEKEkPCwdjiG8VzASEoL0bq pGYyD+Keou2skJSUo952Q2ylrANGsbm7DR+m0UDo= To: libcamera-devel@lists.libcamera.org Date: Fri, 9 Dec 2022 17:19:35 +0900 Message-Id: <20221209081937.598303-3-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221209081937.598303-1-paul.elder@ideasonboard.com> References: <20221209081937.598303-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/4] tracepoints: request: Add event class for request and buffer X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Currently there is one tracepoint event request_complete_buffer that outputs information on both the request and its buffer. We want to add another event for add_buffer. Add an event class to cover this. Signed-off-by: Paul Elder --- .../libcamera/internal/tracepoints/request.tp | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/include/libcamera/internal/tracepoints/request.tp b/include/libcamera/internal/tracepoints/request.tp index 491c7705..8e7cab5e 100644 --- a/include/libcamera/internal/tracepoints/request.tp +++ b/include/libcamera/internal/tracepoints/request.tp @@ -23,6 +23,22 @@ TRACEPOINT_EVENT_CLASS( ) ) +TRACEPOINT_EVENT_CLASS( + libcamera, + request_with_buffer, + TP_ARGS( + libcamera::Request::Private *, req, + libcamera::FrameBuffer *, buf + ), + TP_FIELDS( + ctf_integer_hex(uintptr_t, request, reinterpret_cast(req)) + ctf_integer(uint64_t, cookie, req->_o()->cookie()) + ctf_integer(int, status, req->_o()->status()) + ctf_integer_hex(uintptr_t, buffer, reinterpret_cast(buf)) + ctf_enum(libcamera, buffer_status, uint32_t, buf_status, buf->metadata().status) + ) +) + TRACEPOINT_EVENT( libcamera, request_construct, @@ -92,18 +108,12 @@ TRACEPOINT_EVENT_INSTANCE( ) ) -TRACEPOINT_EVENT( +TRACEPOINT_EVENT_INSTANCE( libcamera, + request_with_buffer, request_complete_buffer, TP_ARGS( libcamera::Request::Private *, req, libcamera::FrameBuffer *, buf - ), - TP_FIELDS( - ctf_integer_hex(uintptr_t, request, reinterpret_cast(req)) - ctf_integer(uint64_t, cookie, req->_o()->cookie()) - ctf_integer(int, status, req->_o()->status()) - ctf_integer_hex(uintptr_t, buffer, reinterpret_cast(buf)) - ctf_enum(libcamera, buffer_status, uint32_t, buf_status, buf->metadata().status) ) ) From patchwork Fri Dec 9 08:19:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17962 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id AF21FBDE6B for ; Fri, 9 Dec 2022 08:20:03 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 649676335B; Fri, 9 Dec 2022 09:20:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1670574003; bh=oe20rhZFpl3g9AudSQQO5z2bf+MKxwrdmpj0h+WVhLI=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=OMPStD3LyqsXIu8yKc0I+FupMoQtraaqVX7OozGfrQB7aLFa/8dKIIXfhGESNhkZL MkaFn1ECGUYCvhpdUQNIjT84nUTTlPew5yhSyHVbRX/EzDiK8GbZEQPww19PZfLVQ8 r/qtSjbwl67SsUuioPmt2DZO2km9Ka3oE/uYByB5RHEHuaJITWkQd8Y7waknl6wKcK eRAVaoquG6wAe0WQasVlmIyukSLRDi6Wn3W+Xqh7pLZMyTtZKAHelYmuEhoHsjLX+Z cTEgVFtFGTKLo0gw83VaXFPmbN2j9sYZC0QhYZsjHzUIqQ74XcydzVREnC0uF/exHn dtf0edH3X42hg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1DF946334A for ; Fri, 9 Dec 2022 09:20:01 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ulVNaE1W"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D31BC480; Fri, 9 Dec 2022 09:19:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670574000; bh=oe20rhZFpl3g9AudSQQO5z2bf+MKxwrdmpj0h+WVhLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ulVNaE1WfWIz1xpCB4d/IeEzPgcMzOMILZIWamZ+kGrLPQYUaoLkAjtDE674aC4x5 EteTPLNse6TSanixzE2f5OQuMdo0mx+R3yjt4xVURDlfGuLEPRFzRASJ5goqozLgeR 5ovx8yJo8FOYWwA71zzOjcuO1bxZXP7n6hD4Kkbs= To: libcamera-devel@lists.libcamera.org Date: Fri, 9 Dec 2022 17:19:36 +0900 Message-Id: <20221209081937.598303-4-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221209081937.598303-1-paul.elder@ideasonboard.com> References: <20221209081937.598303-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/4] tracepoints: request: Add tracepoint for addBuffer X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a tracepoint event request_add_buffer for tracing Request::addBuffer(). Signed-off-by: Paul Elder --- include/libcamera/internal/tracepoints/request.tp | 10 ++++++++++ src/libcamera/request.cpp | 2 ++ 2 files changed, 12 insertions(+) diff --git a/include/libcamera/internal/tracepoints/request.tp b/include/libcamera/internal/tracepoints/request.tp index 8e7cab5e..29aa3745 100644 --- a/include/libcamera/internal/tracepoints/request.tp +++ b/include/libcamera/internal/tracepoints/request.tp @@ -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, diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp index b9fb17d6..ecefba0b 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -462,6 +462,8 @@ void Request::reuse(ReuseFlag flags) int Request::addBuffer(const Stream *stream, FrameBuffer *buffer, std::unique_ptr fence) { + LIBCAMERA_TRACEPOINT(request_add_buffer, _d(), buffer); + if (!stream) { LOG(Request, Error) << "Invalid stream reference"; return -EINVAL; From patchwork Fri Dec 9 08:19:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17963 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 37A0BBDE6B for ; Fri, 9 Dec 2022 08:20:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id ED0F36335D; Fri, 9 Dec 2022 09:20:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1670574005; bh=EFJeSy6sbJJ2oXZhNmCoBfWGPim8lrt3pOCpN6iX5qU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=VWQz+S5GaEuUiU3afFK7li/shNRrqXlySmWhqJ9VBq8l8YL4a4pMPVeodHafFBNOV 1kWX46o5pxQqsAS3EuQ9lZQHxq0loHjLiwjzhGURsJjRiNVUGA/h05IVYxfemEZvrL 5WZLLmncRLL2MXhYQzluAPeTSKBYSGg6my9LUDF23VsJRtvFjeiCpWbcTKH3McsMfN kRAH0ki2f6rPi3ShK/Lvgjan9cOZ4N8hwYWGfC1XmfRMaTsQMhvDqZ2NIFI656TDgS tDbB2t7t6dfJZAMsmX+Hm2W4qIzwA50pmBxRMfOc5IJlObkldF5FVp6Ng5QffNwpvD WwZqYQoocn8NA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 06BAA6334B for ; Fri, 9 Dec 2022 09:20:02 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="TaV2dqrL"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9398F480; Fri, 9 Dec 2022 09:20:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670574002; bh=EFJeSy6sbJJ2oXZhNmCoBfWGPim8lrt3pOCpN6iX5qU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TaV2dqrLE8FJlJm03Fm1wK+5flaevp0fdHV590yhgBIMQuRAljrqhB+0cZU6sGGYn a6gQSfUkU17E0ZTAL/cX2xBSzsd0YfIlvwbONT4fJWS+inHdGvstNcmuUMRVZOxz6R grJq02WZ2+CkhYXAuwuFfguRjV97uOEV4YIDJtcU= To: libcamera-devel@lists.libcamera.org Date: Fri, 9 Dec 2022 17:19:37 +0900 Message-Id: <20221209081937.598303-5-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221209081937.598303-1-paul.elder@ideasonboard.com> References: <20221209081937.598303-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 4/4] tracepoints: request: Add flags to request_reuse tracepoint X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add flags to the fields of the tracepoint event request_reuse. This causes it to be no longer able to use the event class, which is why it has to list the fields again. Signed-off-by: Paul Elder --- .../libcamera/internal/tracepoints/request.tp | 24 ++++++++++++------- src/libcamera/request.cpp | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/include/libcamera/internal/tracepoints/request.tp b/include/libcamera/internal/tracepoints/request.tp index 29aa3745..e173929f 100644 --- a/include/libcamera/internal/tracepoints/request.tp +++ b/include/libcamera/internal/tracepoints/request.tp @@ -63,15 +63,6 @@ TRACEPOINT_EVENT_INSTANCE( ) ) -TRACEPOINT_EVENT_INSTANCE( - libcamera, - request, - request_reuse, - TP_ARGS( - libcamera::Request *, req - ) -) - TRACEPOINT_EVENT_INSTANCE( libcamera, request, @@ -127,3 +118,18 @@ TRACEPOINT_EVENT_INSTANCE( libcamera::FrameBuffer *, buf ) ) + +TRACEPOINT_EVENT( + libcamera, + request_reuse, + TP_ARGS( + libcamera::Request *, req, + enum libcamera::Request::ReuseFlag, flags + ), + TP_FIELDS( + ctf_integer_hex(uintptr_t, request, reinterpret_cast(req)) + ctf_integer(uint64_t, cookie, req->cookie()) + ctf_enum(libcamera, request_status, uint32_t, status, req->status()) + ctf_integer_hex(uint32_t, flags, static_cast(flags)) + ) +) diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp index ecefba0b..04c0c45c 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -381,7 +381,7 @@ Request::~Request() */ void Request::reuse(ReuseFlag flags) { - LIBCAMERA_TRACEPOINT(request_reuse, this); + LIBCAMERA_TRACEPOINT(request_reuse, this, flags); _d()->reset();