From patchwork Fri Mar 5 06:37:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11501 X-Patchwork-Delegate: paul.elder@ideasonboard.com 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 5609DBD80C for ; Fri, 5 Mar 2021 06:37:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 183AD68A99; Fri, 5 Mar 2021 07:37:55 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="akh/MaB0"; dkim-atps=neutral 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 5A8F468A7E for ; Fri, 5 Mar 2021 07:37:53 +0100 (CET) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 74727884; Fri, 5 Mar 2021 07:37:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1614926273; bh=n1FCqM0BbEjHi8xLSyjO1t19l9OZyZzgWVGUTOaE5kw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=akh/MaB0XvZgcYcoe57vJpTHqzMWFK/DQHwrtvKeJQgXlmKrrQfjWonjf7CyHfN6o jjalJbBMBnSSD4flUNbYzx6zedeg2RTWei+fSmososl8YnZErN0IT69Mfk6BwExSx7 P87k+YMQJegBQLqCybdM5pmdSnmryatXmJk3xsXI= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Fri, 5 Mar 2021 15:37:41 +0900 Message-Id: <20210305063742.15166-2-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210305063742.15166-1-paul.elder@ideasonboard.com> References: <20210305063742.15166-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/2] tracepoints: Add ipa_recv 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Since it's difficult to programatically tell the IPA code generator where the corresponding IPA response is for a given IPA call, instead add a tracepoint to designate that a message (function call) has been received. Signed-off-by: Paul Elder --- include/libcamera/internal/tracepoints.h.in | 4 ++++ include/libcamera/internal/tracepoints/pipeline.tp | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/include/libcamera/internal/tracepoints.h.in b/include/libcamera/internal/tracepoints.h.in index d0fc1365..414cdd4a 100644 --- a/include/libcamera/internal/tracepoints.h.in +++ b/include/libcamera/internal/tracepoints.h.in @@ -18,6 +18,9 @@ tracepoint(libcamera, ipa_call_begin, #pipe, #func) #define LIBCAMERA_TRACEPOINT_IPA_END(pipe, func) \ tracepoint(libcamera, ipa_call_end, #pipe, #func) +#define LIBCAMERA_TRACEPOINT_IPA_RECV(pipe, func) \ +tracepoint(libcamera, ipa_recv, #pipe, #func) + #else namespace { @@ -33,6 +36,7 @@ inline void unused([[maybe_unused]] Args&& ...args) #define LIBCAMERA_TRACEPOINT_IPA_BEGIN(pipe, func) #define LIBCAMERA_TRACEPOINT_IPA_END(pipe, func) +#define LIBCAMERA_TRACEPOINT_IPA_RECV(pipe, func) #endif /* HAVE_TRACING */ diff --git a/include/libcamera/internal/tracepoints/pipeline.tp b/include/libcamera/internal/tracepoints/pipeline.tp index 950aa918..422c887f 100644 --- a/include/libcamera/internal/tracepoints/pipeline.tp +++ b/include/libcamera/internal/tracepoints/pipeline.tp @@ -30,3 +30,16 @@ TRACEPOINT_EVENT( ctf_string(function_name, func) ) ) + +TRACEPOINT_EVENT( + libcamera, + ipa_recv, + TP_ARGS( + const char *, pipe, + const char *, func + ), + TP_FIELDS( + ctf_string(pipeline_name, pipe) + ctf_string(function_name, func) + ) +)