From patchwork Mon Jul 4 01:14:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 14512 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 7C0305586; Mon, 4 Jul 2016 03:14:21 +0200 (CEST) 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F87YC0148jvjnmMfjH1VUsH7NmkaThhx/sTN+M3Nvys=; b=sYhSwwET+DxJWOsXLvq7jkX7Q4j6H6Qnu+tobCkrjA/AaytCrywVfFum2LMuEZFv14 hVW7bDD3o1AO/iOHFkHGuxyQysUCEodbQCAtC11kC+goKJiz2csnsdRR2FaoGKLI3IJl I7nP1XVPM2Z6p65t/kXhN/2Cp5jzotYcTqQ2lSEHAXv/gjkI/xTo/BzlpFDI2eMlSrpD 28DL0Z/hXuyFidSDMjmRxhMHxR1ibqn5CLFGe0TjnV56Wn68ryrGexEWw5yDNN0EeTN7 6FPeZu6NXNS0F3Xo4XZQYUYtfZcOpEhM78El/gN2Aue/uTchFAMr0Et6phWEOX989pXG +mNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F87YC0148jvjnmMfjH1VUsH7NmkaThhx/sTN+M3Nvys=; b=XhtYMIgal7FQQHlWjSuv1dqjuNV0PfQtHCYMT6dLlOyrap4oglOGsiaEIlO8AzGI0J 8HElLao6NUmuWbjfjnhDKhHl2ErBOcuLtaVev7AsQEdj6ZfG4sie4mZT/HYN+2nDYrKW kL6vNCz1rCvw93SGLZV0mTmV4/EwClUH1UA/WaqOedsycR5Z+qVo3191inxuzIlBIyh7 IwdEbSk/YrYBmKjbjIDM5W5qZ48xdHwgh+eneoqrYEcAPLNFTKa2sZezd8yGYys6fPjL SPoXtOnNh4fp6xc5FY3Lv/M4CHrrBiMzkDESLuDvSAqX7ZLhiCLQHkO4n0M7s3s00/qH 3kxg== X-Gm-Message-State: ALyK8tIBkFldz7PwVp7MZF5OHpZOvWa2YFd0DmX8RoNq81NCBDzycG4rURuVRDTj1c2xF4Xk X-Received: by 10.194.22.169 with SMTP id e9mr7778252wjf.128.1467594860239; Sun, 03 Jul 2016 18:14:20 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id l4sm5527127wjk.18.2016.07.03.18.14.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Jul 2016 18:14:19 -0700 (PDT) From: Thomas Monjalon To: Neil Horman Cc: dev@dpdk.org, Panu Matilainen Date: Mon, 4 Jul 2016 03:14:04 +0200 Message-Id: <1467594845-3487-7-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1467594845-3487-1-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> Subject: [dpdk-dev] [PATCH v9 6/7] eal: export default plugin path to external tools 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: , 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;