From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v9 6/7] eal: export default plugin path to external tools Date: Mon, 4 Jul 2016 03:14:04 +0200 Message-ID: <1467594845-3487-7-git-send-email-thomas.monjalon@6wind.com> References: <1466189185-21952-1-git-send-email-nhorman@tuxdriver.com> <1467594845-3487-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org, Panu Matilainen To: Neil Horman Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 60AB3530A for ; Mon, 4 Jul 2016 03:14:20 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id r201so95816841wme.1 for ; Sun, 03 Jul 2016 18:14:20 -0700 (PDT) In-Reply-To: <1467594845-3487-1-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Neil Horman Export a symbol containing the string: DPDK_PLUGIN_PATH="$(CONFIG_RTE_EAL_PMD_PATH)" Where the latter half of the string is set at build time to a location from which autoloaded DSO's will be found. This string is used by dpdk-pmdinfo in 'plugin' mode, whereby a user can specify a DPDK installation directory (or static binary), and scan the associated path (if found) for pmd DSO's and report on their hardware support. Signed-off-by: Neil Horman Acked-by: Panu Matilainen Acked-by: Remy Horton --- lib/librte_eal/common/eal_common_options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 3efc90f..7e9f7b8 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -115,6 +115,10 @@ TAILQ_HEAD_INITIALIZER(solib_list); /* Default path of external loadable drivers */ static const char *default_solib_dir = RTE_EAL_PMD_PATH; +/* Stringified version of default solib path */ +static const char dpdk_solib_path[] __attribute__((used)) = +"DPDK_PLUGIN_PATH=" RTE_EAL_PMD_PATH; + static int master_lcore_parsed; static int mem_parsed; -- 2.7.0