{"id":10299,"url":"https://patchwork.libcamera.org/api/1.1/patches/10299/?format=json","web_url":"https://patchwork.libcamera.org/patch/10299/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20201029101629.61798-4-paul.elder@ideasonboard.com>","date":"2020-10-29T10:16:26","name":"[libcamera-devel,v3,3/6] tracepoints: Add pipeline tracepoints for tracing IPA calls","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"10a63fca5acea5a4a7d87bb75ee9f2f47760b386","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/1.1/people/17/?format=json","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"delegate":{"id":17,"url":"https://patchwork.libcamera.org/api/1.1/users/17/?format=json","username":"epaul","first_name":"Paul","last_name":"Elder","email":"paul.elder@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/patch/10299/mbox/","series":[{"id":1432,"url":"https://patchwork.libcamera.org/api/1.1/series/1432/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1432","date":"2020-10-29T10:16:23","name":"Tracing","version":3,"mbox":"https://patchwork.libcamera.org/series/1432/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/10299/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/10299/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id A5F16BDB9B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 29 Oct 2020 10:16:47 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 74FA3628A5;\n\tThu, 29 Oct 2020 11:16:47 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 26B39628D2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 29 Oct 2020 11:16:46 +0100 (CET)","from pyrite.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:2c71:1b79:d06d:5032])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 692AF50E;\n\tThu, 29 Oct 2020 11:16:44 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"G6A0HhP4\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1603966605;\n\tbh=rf6yf+MG3GNKVkI4ie9nH1MXpfgFJfPyAFzcWq5NiQs=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=G6A0HhP4gfJ5KtUvL+aImxJs3E8edZFJ9fqZACOm/jyEpqb5Mvtd9zyobaVi0g/dx\n\tGttKKJLiq6uIuRAuEz+gHUmE8as86bzHbJBy2SeLN8f1ahVq/wv4gcriuYbn1BZtoT\n\t0p+jB7RxPI9VoGVh8KUUCWU2PlJ4FovtL7B0PhyU=","From":"Paul Elder <paul.elder@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu, 29 Oct 2020 19:16:26 +0900","Message-Id":"<20201029101629.61798-4-paul.elder@ideasonboard.com>","X-Mailer":"git-send-email 2.27.0","In-Reply-To":"<20201029101629.61798-1-paul.elder@ideasonboard.com>","References":"<20201029101629.61798-1-paul.elder@ideasonboard.com>","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH v3 3/6] tracepoints: Add pipeline\n\ttracepoints for tracing IPA calls","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add a pair of tracepoints to a general pipeline tracepoints file,\nlibcamera:ipa_call_start and libcamera:ipa_call_finish, to trace IPA\ncalls. This allows us to obtain the time taken for the IPA call.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\n---\nChanges in v3:\n- rename the ipa tracepoints to ipa_call_begin and ipa_call_end\n- make string args const, so that strings can be passed directly\n\nNew in v2\n---\n .../internal/tracepoints/meson.build          |  1 +\n .../internal/tracepoints/pipeline.tp          | 25 +++++++++++++++++++\n 2 files changed, 26 insertions(+)\n create mode 100644 include/libcamera/internal/tracepoints/pipeline.tp","diff":"diff --git a/include/libcamera/internal/tracepoints/meson.build b/include/libcamera/internal/tracepoints/meson.build\nindex 8410c205..a34135ce 100644\n--- a/include/libcamera/internal/tracepoints/meson.build\n+++ b/include/libcamera/internal/tracepoints/meson.build\n@@ -1,5 +1,6 @@\n # SPDX-License-Identifier: CC0-1.0\n \n tracepoint_files = files([\n+    'pipeline.tp',\n     'request.tp',\n ])\ndiff --git a/include/libcamera/internal/tracepoints/pipeline.tp b/include/libcamera/internal/tracepoints/pipeline.tp\nnew file mode 100644\nindex 00000000..c0a94635\n--- /dev/null\n+++ b/include/libcamera/internal/tracepoints/pipeline.tp\n@@ -0,0 +1,25 @@\n+TRACEPOINT_EVENT(\n+\tlibcamera,\n+\tipa_call_begin,\n+\tTP_ARGS(\n+\t\tconst char *, pipe,\n+\t\tconst char *, func\n+\t),\n+\tTP_FIELDS(\n+\t\tctf_string(pipeline_name, pipe)\n+\t\tctf_string(function_name, func)\n+\t)\n+)\n+\n+TRACEPOINT_EVENT(\n+\tlibcamera,\n+\tipa_call_end,\n+\tTP_ARGS(\n+\t\tconst char *, pipe,\n+\t\tconst char *, func\n+\t),\n+\tTP_FIELDS(\n+\t\tctf_string(pipeline_name, pipe)\n+\t\tctf_string(function_name, func)\n+\t)\n+)\n","prefixes":["libcamera-devel","v3","3/6"]}