Show a patch.

GET /api/patches/44727/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 44727,
    "url": "http://patches.dpdk.org/api/patches/44727/",
    "web_url": "http://patches.dpdk.org/patch/44727/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20180914135406.52190-7-david.hunt@intel.com>",
    "date": "2018-09-14T13:54:04",
    "name": "[v3,6/8] examples/power: add meson/ninja build support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a1543313a88cb6d53e1be685b87f6f5c504efef1",
    "submitter": {
        "id": 342,
        "url": "http://patches.dpdk.org/api/people/342/",
        "name": "David Hunt",
        "email": "david.hunt@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/patch/44727/mbox/",
    "series": [
        {
            "id": 1322,
            "url": "http://patches.dpdk.org/api/series/1322/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1322",
            "date": "2018-09-14T13:53:58",
            "name": "add json power policy interface for containers",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1322/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44727/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44727/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "X-ExtLoop1": "1",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Mailer": "git-send-email 2.17.1",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A14375F32;\n\tFri, 14 Sep 2018 15:54:26 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 1CD1A5F24\n\tfor <dev@dpdk.org>; Fri, 14 Sep 2018 15:54:20 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Sep 2018 06:54:20 -0700",
            "from silpixa00399952.ir.intel.com (HELO\n\tsilpixa00399952.ger.corp.intel.com) ([10.237.223.64])\n\tby orsmga005.jf.intel.com with ESMTP; 14 Sep 2018 06:54:19 -0700"
        ],
        "References": "<20180912144930.50578-1-david.hunt@intel.com>\n\t<20180914135406.52190-1-david.hunt@intel.com>",
        "X-Amp-File-Uploaded": "False",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<20180914135406.52190-7-david.hunt@intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"5.53,373,1531810800\"; d=\"scan'208\";a=\"257257226\"",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Precedence": "list",
        "From": "David Hunt <david.hunt@intel.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "In-Reply-To": "<20180914135406.52190-1-david.hunt@intel.com>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Fri, 14 Sep 2018 14:54:04 +0100",
        "Cc": "john.mcnamara@intel.com, stephen@networkplumber.org, lei.a.yao@intel.com,\n\tbruce.richardson@intel.com, David Hunt <david.hunt@intel.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v3 6/8] examples/power: add meson/ninja build\n\tsupport"
    },
    "content": "Add meson.build in vm_power_manager and the guest_cli subdirectory.\nBuilding can be achieved by going to the build directory, and using\n\nmeson configure -Dexamples=vm_power_manager,vm_power_manager/guest_cli\n\nThen, when ninja is invoked, it will build dpdk-vm_power_manger and\ndpdk-guest_cli\n\nWork still needs to be done on the meson build system to handles the case\nwhere the target list of example apps is defined as 'all'. That will come\nin a future patch.\n\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n .../vm_power_manager/guest_cli/meson.build    | 21 +++++++++++\n examples/vm_power_manager/meson.build         | 37 ++++++++++++++++++-\n 2 files changed, 56 insertions(+), 2 deletions(-)\n create mode 100644 examples/vm_power_manager/guest_cli/meson.build",
    "diff": "diff --git a/examples/vm_power_manager/guest_cli/meson.build b/examples/vm_power_manager/guest_cli/meson.build\nnew file mode 100644\nindex 000000000..9e821ceb8\n--- /dev/null\n+++ b/examples/vm_power_manager/guest_cli/meson.build\n@@ -0,0 +1,21 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Intel Corporation\n+\n+# meson file, for building this example as part of a main DPDK build.\n+#\n+# To build this example as a standalone application with an already-installed\n+# DPDK instance, use 'make'\n+\n+# Setting the name here because the default name will conflict with the\n+# vm_power_manager app because of the way the directories are parsed.\n+name = 'guest_cli'\n+\n+deps += ['power']\n+\n+sources = files(\n+\t'main.c', 'parse.c', 'vm_power_cli_guest.c'\n+)\n+\n+opt_dep = cc.find_library('virt', required : false)\n+build = opt_dep.found()\n+ext_deps += opt_dep\ndiff --git a/examples/vm_power_manager/meson.build b/examples/vm_power_manager/meson.build\nindex c370d7476..f98445bc6 100644\n--- a/examples/vm_power_manager/meson.build\n+++ b/examples/vm_power_manager/meson.build\n@@ -6,5 +6,38 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n-# Example app currently unsupported by meson build\n-build = false\n+if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')\n+\tdeps += ['pmd_bnxt']\n+endif\n+\n+if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')\n+\tdeps += ['pmd_i40e']\n+endif\n+\n+if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')\n+\tdeps += ['pmd_ixgbe']\n+endif\n+\n+deps += ['power']\n+\n+\n+sources = files(\n+\t'channel_manager.c', 'channel_monitor.c', 'main.c', 'parse.c', 'power_manager.c', 'vm_power_cli.c'\n+)\n+\n+# If we're on X86, pull in the x86 code for the branch monitor algo.\n+if dpdk_conf.has('RTE_ARCH_X86_64')\n+\tsources += files('oob_monitor_x86.c')\n+else\n+\tsources += files('oob_monitor_nop.c')\n+endif\n+\n+opt_dep = cc.find_library('virt', required : false)\n+build = opt_dep.found()\n+ext_deps += opt_dep\n+\n+opt_dep = dependency('jansson', required : false)\n+if opt_dep.found()\n+\text_deps += opt_dep\n+\tcflags += '-DUSE_JANSSON'\n+endif\n",
    "prefixes": [
        "v3",
        "6/8"
    ]
}