Show a patch.

GET /api/1.1/patches/21247/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 21247,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/21247/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/21247/",
    "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": "<20240912164909.2083093-1-paul.elder@ideasonboard.com>",
    "date": "2024-09-12T16:49:09",
    "name": "meson: Add -finstrument-functions to debug builds",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c53e515e9967177e6b377a8fc69ad00c65865244",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/1.1/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/21247/mbox/",
    "series": [
        {
            "id": 4585,
            "url": "https://patchwork.libcamera.org/api/1.1/series/4585/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4585",
            "date": "2024-09-12T16:49:09",
            "name": "meson: Add -finstrument-functions to debug builds",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4585/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/21247/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/21247/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 A4ADFC324C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 12 Sep 2024 16:49:37 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 32417634FC;\n\tThu, 12 Sep 2024 18:49:36 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 19164634F2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 12 Sep 2024 18:49:34 +0200 (CEST)",
            "from pyrite.hamster-moth.ts.net\n\t(213-229-8-243.static.upcbusiness.at [213.229.8.243])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 5F3EDB0B;\n\tThu, 12 Sep 2024 18:48:15 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"uPJDsiEg\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1726159695;\n\tbh=L7SmvcjIGyGvgCTyUSJ0qm1hWdfjJMQK3I9S4or14XI=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=uPJDsiEgkOGQUg0e8ORDWBuSE66len7VEylHMNsQ/wy9XP6FkBKUZKnDYe9KLeGzl\n\tHSSHG3O2WjCpi+H9uzTRUH4inAHh4w38IW7NXl53I1cuLuWNQIynhxYgrTCs6j2xZD\n\tyMX1H9nNXXY/kE4BYkdM1ZQQWrICZbJ0/rXuHFs0=",
        "From": "Paul Elder <paul.elder@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Paul Elder <paul.elder@ideasonboard.com>",
        "Subject": "[PATCH] meson: Add -finstrument-functions to debug builds",
        "Date": "Thu, 12 Sep 2024 18:49:09 +0200",
        "Message-Id": "<20240912164909.2083093-1-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.39.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add -finstrument-functions to debug (and debugoptimized) build types.\nThis will mainly be used for tracing functions with lttng by\nLD_PRELOADing liblttng-ust-cyg-profile.so (or\nliblttng-ust-cyg-profile-fast.so).\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n---\n meson.build | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/meson.build b/meson.build\nindex 432ae1337..e8014e77f 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -109,6 +109,12 @@ common_arguments = [\n     '-include', meson.current_build_dir() / 'config.h',\n ]\n \n+if get_option('buildtype').startswith('debug')\n+    common_arguments += [\n+        '-finstrument-functions',\n+    ]\n+endif\n+\n c_arguments = []\n cpp_arguments = []\n \n",
    "prefixes": []
}