From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 3B7D52C33 for ; Thu, 16 Jun 2016 14:30:01 +0200 (CEST) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 736713B70B; Thu, 16 Jun 2016 12:30:00 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-4-166.ams2.redhat.com [10.36.4.166]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5GCTv6J025729; Thu, 16 Jun 2016 08:29:58 -0400 To: Neil Horman , dev@dpdk.org References: <1463431287-4551-1-git-send-email-nhorman@tuxdriver.com> <1465494421-6210-1-git-send-email-nhorman@tuxdriver.com> <1465494421-6210-2-git-send-email-nhorman@tuxdriver.com> Cc: Bruce Richardson , Thomas Monjalon , Stephen Hemminger From: Panu Matilainen Message-ID: <2e4a75e2-54fb-e449-a146-5b7bdf47f9f2@redhat.com> Date: Thu, 16 Jun 2016 15:29:57 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1465494421-6210-2-git-send-email-nhorman@tuxdriver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 16 Jun 2016 12:30:00 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCHv7 1/6] pmdinfogen: Add buildtools and pmdinfogen utility X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2016 12:30:01 -0000 On 06/09/2016 08:46 PM, Neil Horman wrote: > pmdinfogen is a tool used to parse object files and build json strings for > use in later determining hardware support in a dso or application binary. > pmdinfo looks for the non-exported symbol names this_pmd_name and > this_pmd_tbl (where n is a integer counter). It records the name of > each of these tuples, using the later to find the symbolic name of the > pci_table for physical devices that the object supports. With this > information, it outputs a C file with a single line of the form: > > static char *_driver_info[] __attribute__((used)) = " \ > PMD_DRIVER_INFO="; > > Where is the arbitrary name of the pmd, and is the > json encoded string that hold relevant pmd information, including the pmd > name, type and optional array of pci device/vendor ids that the driver > supports. > > This c file is suitable for compiling to object code, then relocatably > linking into the parent file from which the C was generated. This creates > an entry in the string table of the object that can inform a later tool > about hardware support. > > Signed-off-by: Neil Horman > CC: Bruce Richardson > CC: Thomas Monjalon > CC: Stephen Hemminger > CC: Panu Matilainen > --- Unlike earlier versions, pmdinfogen ends up installed in bindir during "make install". Is that intentional, or just a side-effect from using rte.hostapp.mk? If its intentional it probably should be prefixed with dpdk_ like the other tools. - Panu -