From patchwork Fri Oct 30 08:57:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 10308 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 4E640BDB1E for ; Fri, 30 Oct 2020 08:58:13 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0116D62995; Fri, 30 Oct 2020 09:58:12 +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="aDmuHJPf"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0543F62034 for ; Fri, 30 Oct 2020 09:58:11 +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 3E1F99B7; Fri, 30 Oct 2020 09:58:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1604048290; bh=vpp8Kl6o++fsPCHmkBXiH5ssIzgHm6Jg2FTrQyAcqro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aDmuHJPfXWu7b2eDJIVB42LvfL7QnwCiYNPm8Lvg0/ZHcszM2N5iYweeL4Fjyr0S6 IsxK5r3+2IQW5jjfx6lP+sItbww2mmtobzeHqovtrIwiFmCKfv2BodV8cFE45/iNQW l6dyKESQopqRkYQwXjz0L5hn56XbqGUTsN+7FmT8= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Fri, 30 Oct 2020 17:57:54 +0900 Message-Id: <20201030085756.79329-4-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201030085756.79329-1-paul.elder@ideasonboard.com> References: <20201030085756.79329-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 3/5] tracepoints: Add pipeline tracepoints for tracing IPA calls 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" Add a pair of tracepoints to a general pipeline tracepoints file, libcamera:ipa_call_start and libcamera:ipa_call_finish, to trace IPA calls. This allows us to obtain the time taken for the IPA call. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart --- No change in v4 Changes in v3: - rename the ipa tracepoints to ipa_call_begin and ipa_call_end - make string args const, so that strings can be passed directly New in v2 --- .../internal/tracepoints/meson.build | 1 + .../internal/tracepoints/pipeline.tp | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 include/libcamera/internal/tracepoints/pipeline.tp diff --git a/include/libcamera/internal/tracepoints/meson.build b/include/libcamera/internal/tracepoints/meson.build index fee0758f..e2a5470a 100644 --- a/include/libcamera/internal/tracepoints/meson.build +++ b/include/libcamera/internal/tracepoints/meson.build @@ -5,5 +5,6 @@ tracepoint_files = files([ 'buffer_enums.tp', 'request_enums.tp', + 'pipeline.tp', 'request.tp', ]) diff --git a/include/libcamera/internal/tracepoints/pipeline.tp b/include/libcamera/internal/tracepoints/pipeline.tp new file mode 100644 index 00000000..c0a94635 --- /dev/null +++ b/include/libcamera/internal/tracepoints/pipeline.tp @@ -0,0 +1,25 @@ +TRACEPOINT_EVENT( + libcamera, + ipa_call_begin, + TP_ARGS( + const char *, pipe, + const char *, func + ), + TP_FIELDS( + ctf_string(pipeline_name, pipe) + ctf_string(function_name, func) + ) +) + +TRACEPOINT_EVENT( + libcamera, + ipa_call_end, + TP_ARGS( + const char *, pipe, + const char *, func + ), + TP_FIELDS( + ctf_string(pipeline_name, pipe) + ctf_string(function_name, func) + ) +)