Patch Detail
Show a patch.
GET /api/1.1/patches/17410/?format=api
{ "id": 17410, "url": "https://patchwork.libcamera.org/api/1.1/patches/17410/?format=api", "web_url": "https://patchwork.libcamera.org/patch/17410/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20220926152514.479598-1-kieran.bingham@ideasonboard.com>", "date": "2022-09-26T15:25:14", "name": "[libcamera-devel] utils: Provide lcdebug helper script", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "323ad5b410e8e6394652c95be36864ceeb7a34f6", "submitter": { "id": 4, "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api", "name": "Kieran Bingham", "email": "kieran.bingham@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/17410/mbox/", "series": [ { "id": 3505, "url": "https://patchwork.libcamera.org/api/1.1/series/3505/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3505", "date": "2022-09-26T15:25:14", "name": "[libcamera-devel] utils: Provide lcdebug helper script", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3505/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/17410/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/17410/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 5B38CC0DA4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 26 Sep 2022 15:25:21 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 98BC76225F;\n\tMon, 26 Sep 2022 17:25:20 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1640A62254\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 26 Sep 2022 17:25:19 +0200 (CEST)", "from Monstersaurus.local\n\t(cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 8D11E107;\n\tMon, 26 Sep 2022 17:25:18 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664205920;\n\tbh=q4UZ/66y9SClKskwselCl6QxfNr6+If51Aw4PS/tLHc=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=TfVzemmBtm/VHIrqslbPgMlU42/3xURRou1c1WnLthW6QcEJ4xLdWiXto3VkjNWeB\n\teinzNYzmYdhk87EqZza3yBuF7hK5F68lj7pvOWwlR7t4qBCs6z3S+V39wZHfNjVV6C\n\tF/zM3wqCq4mbj5psKbgcui2majBUznpKBpOYx5U3kCfkwP+kyFi0OnKRgv1slrOzJ/\n\tECIvWY0GqJ+e2j4RxolDIrvvpX9+59ImeteNoZxl8Sr7+i+TIjf8LeRw1c0S0mTV3Z\n\tUAESQoOcMTg20DlZ1N4Xisox4Uzg59JTm+azxHPSRkUizaFE/PPRIDL31KLV0bcesA\n\tA2uQTRHgLHSbw==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1664205918;\n\tbh=q4UZ/66y9SClKskwselCl6QxfNr6+If51Aw4PS/tLHc=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=fqtW7eMjAjTDyWgM6+O/Ub9IfIc+WzmEQ6eZYZAV6AmTazEpNNp9NFGNFFL6kXp6o\n\t+HEjXJ2vL3FoK0JklpO+V2X3mgpKPrGewpbRvPdC3OtpQ3hvL9qoygpRqXYcxK79HC\n\tuNnUKZiL9tU7cQ9S523gvoaIRiSAxQV8Me1hhKAA=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"fqtW7eMj\"; dkim-atps=neutral", "To": "libcamera devel <libcamera-devel@lists.libcamera.org>", "Date": "Mon, 26 Sep 2022 16:25:14 +0100", "Message-Id": "<20220926152514.479598-1-kieran.bingham@ideasonboard.com>", "X-Mailer": "git-send-email 2.34.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH] utils: Provide lcdebug helper script", "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>", "From": "Kieran Bingham via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Provide a utility script to make it easy to debug issues\nusing libcamera. The lcdebug can be prefixed to enable the\nlibcamera debug levels by default, while still allow customising them.\n\nIt makes it easy to identify the available debug levels from a libcamera\nsource tree with the -h/--help option.\n\nFinally, it facilitates stracing ioctls to see what operations are\nperformed during the running of a libcamera based application to highlight\nkernel interactions and calls.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n\nExample usage:\n\n ./utils/lcdebug -s qcam -c1 -s pixelformat=RGB565\n\nTo help debugging pixel format selection issues.\n\nThis could be extended with a '-g' in the future to wrap with GDB too?\n\n\n utils/lcdebug | 45 +++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 45 insertions(+)\n create mode 100755 utils/lcdebug", "diff": "diff --git a/utils/lcdebug b/utils/lcdebug\nnew file mode 100755\nindex 000000000000..5477dba4cbe0\n--- /dev/null\n+++ b/utils/lcdebug\n@@ -0,0 +1,45 @@\n+#!/bin/bash\n+\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+# Support debugging libcamera commands and applications.\n+\n+# We default to enabling the most debug\n+# (that's why we're being used right)\n+\n+FILTER=\"*\"\n+LEVEL=\"0\"\n+STRACE=\"\"\n+\n+while [[ $# -gt 0 ]]\n+do\n+case $1 in\n+ -x)\n+ set -x;\n+ shift;\n+ ;;\n+ -s|--strace)\n+\tSTRACE=\"strace -e ioctl -f --\"\n+\tshift;\n+\t;;\n+ -f|--filter)\n+\tFILTER=\"$2\";\n+\tshift; shift;\n+ ;;\n+ -l|--level)\n+\tLEVEL=\"$2\";\n+\tshift; shift;\n+ ;;\n+ -h|--help)\n+\techo \"The following filters are available:\"\n+\tgit grep \"^LOG_DEFINE_CATEGORY\" | \\\n+\t\tawk -F '[()]' '{print $2}' | \\\n+\t\tsort\n+\texit\n+\t;;\n+ *|--) # unknown option, The rest belongs to the command\n+\tbreak;\n+ ;;\n+esac\n+done\n+\n+LIBCAMERA_LOG_LEVELS=$FILTER:$LEVEL $STRACE \"${@}\"\n", "prefixes": [ "libcamera-devel" ] }