From patchwork Tue Dec 13 09:15:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17983 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 0A48BBDE6B for ; Tue, 13 Dec 2022 09:16:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 64F5363363; Tue, 13 Dec 2022 10:16:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1670922973; bh=ZFZbWl/vRmlX2jTyXtlvkVx6gUICCL3scff57RKwz0w=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=MUJIK7TmOJkD3QxNRk7uPfE6M98XSzQXxNPLp307KLpZwklMzzaTPS+/EwRQOXJ3K N0b89zcTrSnGC9XHyXOTvPlRndAZaM2aGui6Oqg9shnJ3O3KvwYm4BjOj1ZfaecCEV dNkuXLtfast2nTCs19AWdE2nyS2trYGE1G+Xeabj6RdTuHhsvfUxQ/k7MRmtvxLwZE y55BVByqJ6b5BXF25gZFEz5C4maOH4sQHJ9NhcMaoZFYT+V8VYDVJQqBH9rvEjs8jN ka73xFTCNWJ4i78EmlnARUbGHaKy/Z3JDuzxTUFyrmsZJkDMfkPzg0VseCrEN0w5u8 weSgH6XD3HyTg== 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 8F66D6334D for ; Tue, 13 Dec 2022 10:16:11 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Aeqw9x/B"; 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 1B4704A7; Tue, 13 Dec 2022 10:16:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670922971; bh=ZFZbWl/vRmlX2jTyXtlvkVx6gUICCL3scff57RKwz0w=; h=From:To:Cc:Subject:Date:From; b=Aeqw9x/BVbJ1PLUiXGd4/glVIovQWlR7pBZDEibH556D8eI96iXCnt+UPe8EYdXLM b926APt+0jisDsRCpVGSiDYiVnfpFtBR/VNdzTAoy20O0V7e2IRAjzPovA04MZ8uN0 s/l+mRZCA34nXQg5UnqTxLIwC+svBFVmeu9CfNPQ= To: libcamera-devel@lists.libcamera.org Date: Tue, 13 Dec 2022 18:15:51 +0900 Message-Id: <20221213091558.621950-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/7] tracepoints: request: Improve request tracepoints 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" This patch series contains miscellaneous improvements to the tracepoints for Requests, which were useful in debugging the deconstruction of Requests vs FrameBuffers [1]. v2 Cleans up some of the existing tracepoints a bit more, and adds even more tracepoints, notably to v4l2 and pipeline. [1] https://bugs.libcamera.org/show_bug.cgi?id=171 Paul Elder (7): tracepoints: request: Use public Request pointer in all tracepoints tracepoints: request: Add event class for request and buffer tracepoints: request: Add tracepoint for addBuffer tracepoints: request: Add flags to request_reuse tracepoint tracepoints: v4l2: Add tracepoints for tracking buffer lifetime tracepoints: pipeline: Add tracepoint for pipe stop tracepoints: pipeline: Add tracepoint for bufferReady .../internal/tracepoints/meson.build | 2 + .../internal/tracepoints/pipeline.tp | 31 ++++++++ .../libcamera/internal/tracepoints/request.tp | 57 ++++++++++---- .../libcamera/internal/tracepoints/v4l2.tp | 77 +++++++++++++++++++ .../internal/tracepoints/v4l2_enums.tp | 16 ++++ src/libcamera/pipeline/vimc/vimc.cpp | 3 + src/libcamera/pipeline_handler.cpp | 2 + src/libcamera/request.cpp | 13 ++-- src/libcamera/v4l2_videodevice.cpp | 9 +++ 9 files changed, 189 insertions(+), 21 deletions(-) create mode 100644 include/libcamera/internal/tracepoints/v4l2.tp create mode 100644 include/libcamera/internal/tracepoints/v4l2_enums.tp