From patchwork Tue Dec 13 09:15:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17987 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 86060BDE6B for ; Tue, 13 Dec 2022 09:16:21 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2FAF563370; Tue, 13 Dec 2022 10:16:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1670922981; bh=9HxgRXXTRU6iVRfwvCV88S566SAWuWSskXAEAD5+FM0=; 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=gbxkmra/ITR9m+mjv9D60OTSww2Ir/338v3c39GXrzMzTMNeZW9Bu/i+sblbeO9O+ FV/KndrElzBb7a9BB/JVKsbAWy5kr1yNo1AIN+7Sdobi0ROFU1g+b6J1vrCMFcU2I8 feXaOZM2FvmzzvD5hl5UsvbYM2So1x/K5VGFn2nuOPV+JWiAJ+YwbJ7O6lAkJuC2V+ r/bK2qsQsdgcbByb5KABLWQgciNCPphklQygGyTpNA2j0161xXiznNbJnBjR3qKgka SyUn0g+EoTEOLD73ttqtWPhapBHKYvzvUkXE2MyXAfcE4oi7DG0GxWQEfXCyHiOPrb 6ALdKUNiFXs3A== 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 C87946336B for ; Tue, 13 Dec 2022 10:16:17 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="mLQ4E4v2"; 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 621637C5; Tue, 13 Dec 2022 10:16:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670922977; bh=9HxgRXXTRU6iVRfwvCV88S566SAWuWSskXAEAD5+FM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mLQ4E4v2PawjfibhD/sNiiVX5Goe9u27dIO1EZ8D3lerbR8VS5mbyU5re5shNQF3M sxhDY9TBNv94fbTaeVcWma6futYqN9Hjp/pxoM/0+SKrswunPOhQZs+9qHXSJjmpRI HiPApkEcBhoHckCUVihWPTuw6fF8sloO9QnOeylw= To: libcamera-devel@lists.libcamera.org Date: Tue, 13 Dec 2022 18:15:55 +0900 Message-Id: <20221213091558.621950-5-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221213091558.621950-1-paul.elder@ideasonboard.com> References: <20221213091558.621950-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 4/7] 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 --- New in v2 --- .../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 e0ac45ac..c1623586 100644 --- a/include/libcamera/internal/tracepoints/request.tp +++ b/include/libcamera/internal/tracepoints/request.tp @@ -55,15 +55,6 @@ TRACEPOINT_EVENT_INSTANCE( ) ) -TRACEPOINT_EVENT_INSTANCE( - libcamera, - request, - request_reuse, - TP_ARGS( - libcamera::Request *, req - ) -) - TRACEPOINT_EVENT_INSTANCE( libcamera, request, @@ -119,3 +110,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 226c26b7..5a127f06 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -382,7 +382,7 @@ Request::~Request() */ void Request::reuse(ReuseFlag flags) { - LIBCAMERA_TRACEPOINT(request_reuse, this); + LIBCAMERA_TRACEPOINT(request_reuse, this, flags); _d()->reset();