Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/13127/?format=api
http://patches.dpdk.org/api/patches/13127/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1464703068-2924-8-git-send-email-nhorman@tuxdriver.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "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", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1464703068-2924-8-git-send-email-nhorman@tuxdriver.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1464703068-2924-8-git-send-email-nhorman@tuxdriver.com", "date": "2016-05-31T13:57:48", "name": "[dpdk-dev,PATCHv6,7/7] doc: Add prog_guide section documenting pmdinfo script", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "7a8441c9cb92abb2fb573114626430eead7b4eeb", "submitter": { "id": 32, "url": "http://patches.dpdk.org/api/people/32/?format=api", "name": "Neil Horman", "email": "nhorman@tuxdriver.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1464703068-2924-8-git-send-email-nhorman@tuxdriver.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/13127/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/13127/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 6801C4AAD;\n\tTue, 31 May 2016 15:59:17 +0200 (CEST)", "from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58])\n\tby dpdk.org (Postfix) with ESMTP id AA661374E\n\tfor <dev@dpdk.org>; Tue, 31 May 2016 15:59:15 +0200 (CEST)", "from hmsreliant.think-freely.org\n\t([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost)\n\tby smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63)\n\t(envelope-from <nhorman@tuxdriver.com>)\n\tid 1b7kCK-0005MD-LX; Tue, 31 May 2016 09:59:13 -0400" ], "From": "Neil Horman <nhorman@tuxdriver.com>", "To": "dev@dpdk.org", "Cc": "Neil Horman <nhorman@tuxdriver.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tThomas Monjalon <thomas.monjalon@6wind.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tPanu Matilainen <pmatilai@redhat.com>", "Date": "Tue, 31 May 2016 09:57:48 -0400", "Message-Id": "<1464703068-2924-8-git-send-email-nhorman@tuxdriver.com>", "X-Mailer": "git-send-email 2.5.5", "In-Reply-To": "<1464703068-2924-1-git-send-email-nhorman@tuxdriver.com>", "References": "<1463431287-4551-1-git-send-email-nhorman@tuxdriver.com>\n\t<1464703068-2924-1-git-send-email-nhorman@tuxdriver.com>", "X-Spam-Score": "-1.0 (-)", "X-Spam-Status": "No", "Subject": "[dpdk-dev] [PATCHv6 7/7] doc: Add prog_guide section documenting\n\tpmdinfo script", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Information on pmdinfogen may be useful to 3rd party driver developers. Include\ndocumentation on what it does\n\nSigned-off-by: Neil Horman <nhorman@tuxdriver.com>\nCC: Bruce Richardson <bruce.richardson@intel.com>\nCC: Thomas Monjalon <thomas.monjalon@6wind.com>\nCC: Stephen Hemminger <stephen@networkplumber.org>\nCC: Panu Matilainen <pmatilai@redhat.com>\n---\n doc/guides/prog_guide/dev_kit_build_system.rst | 43 ++++++++++++++++++++++++--\n 1 file changed, 41 insertions(+), 2 deletions(-)", "diff": "diff --git a/doc/guides/prog_guide/dev_kit_build_system.rst b/doc/guides/prog_guide/dev_kit_build_system.rst\nindex 3e89eae..e5043dc 100644\n--- a/doc/guides/prog_guide/dev_kit_build_system.rst\n+++ b/doc/guides/prog_guide/dev_kit_build_system.rst\n@@ -70,7 +70,7 @@ Each build directory contains include files, libraries, and applications:\n ...\n ~/DEV/DPDK$ ls i686-native-linuxapp-gcc\n \n- app build hostapp include kmod lib Makefile\n+ app build buildtools include kmod lib Makefile\n \n \n ~/DEV/DPDK$ ls i686-native-linuxapp-gcc/app/\n@@ -264,7 +264,7 @@ These Makefiles generate a binary application.\n \n * rte.extapp.mk: External application\n \n-* rte.hostapp.mk: Host application in the development kit framework\n+* rte.buildtools.mk: prerequisite tool to build dpdk \n \n Library\n ^^^^^^^\n@@ -304,6 +304,45 @@ Misc\n \n * rte.subdir.mk: Build several directories in the development kit framework.\n \n+.. _Internally_Generated_Build_Tools\n+\n+Internally Generated Build Tools\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+buildtools/pmdinfogen\n+\n+\n+pmdinfogen scans an object (.o) file for various well known symbol names. These\n+well know symbol names are defined by various macros and used to export\n+important information about hardware support and usage for pmd files. for\n+instance the macro:\n+\n+.. code-block:: c \n+\n+ PMD_REGISTER_DRIVER(drv, name)\n+\n+\n+Creates the following symbol:\n+\n+.. code-block:: c \n+\n+ static char this_pmd_name0[] __attribute__((used)) = \"<name>\";\n+\n+\n+Which pmdinfogen scans for. Using this information other relevant bits of data\n+can be exported from the object file and used to produce a hardware support\n+description, that pmdinfogen then encodes into a json formatted string in the\n+following format:\n+\n+.. code-block:: C\n+\n+ static char <name_pmd_string>=\"PMD_INFO_STRING=\\\"{'name' : '<name>', ...}\\\"\";\n+\n+\n+These strings can then be searched for by external tools to determine the\n+hardware support of a given library or application\n+\n+\n .. _Useful_Variables_Provided_by_the_Build_System:\n \n Useful Variables Provided by the Build System\n", "prefixes": [ "dpdk-dev", "PATCHv6", "7/7" ] }{ "id": 13127, "url": "