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) ) )