From patchwork Tue Sep 15 02:08:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Yang X-Patchwork-Id: 77661 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B700AA04C7; Tue, 15 Sep 2020 04:21:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6E85B1BE8E; Tue, 15 Sep 2020 04:21:50 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 17F60160 for ; Tue, 15 Sep 2020 04:21:47 +0200 (CEST) IronPort-SDR: 60xnTphA15H8xXSvPVRp4JM/fTZv2kb4ZDBTmSBDGH0jDV2gnU/dRsoIRUGmrGHEEE4nnGaTcE nUqKVZoeclVw== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="160122673" X-IronPort-AV: E=Sophos;i="5.76,427,1592895600"; d="scan'208";a="160122673" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2020 19:21:46 -0700 IronPort-SDR: uNExUDnkFQ33STNBY1ReKufbnHJSJpkrYtjwFv7u6mdS6CzxrH++REWVV9rWRDr9F3qYVg5ojg GknQYjSx1mJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,427,1592895600"; d="scan'208";a="319272973" Received: from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136]) by orsmga002.jf.intel.com with ESMTP; 14 Sep 2020 19:21:44 -0700 From: SteveX Yang To: dev@dpdk.org Cc: bruce.richardson@intel.com, wenzhuo.lu@intel.com, beilei.xing@intel.com, qiming.yang@intel.com, SteveX Yang Date: Tue, 15 Sep 2020 02:08:36 +0000 Message-Id: <20200915020836.18396-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910022018.8955-1-stevex.yang@intel.com> References: <20200910022018.8955-1-stevex.yang@intel.com> Subject: [dpdk-dev] [PATCH v2] app/test-pmd: fix meson build failed when used latency stats lib X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" meson build cannot find the header rte_latencystats.h when build DPDK first time or never installed DPDK lib after build via meson/ninja. Because the corresponding header directory isn't included after enabled RTE_LIBRTE_LATENCY_STATS flag. Add the lib 'latencystats' to deps of meson.build of test-pmd, the corresponding header files will be included automatically. Fixes: 62d3216d6194 ("app/testpmd: add latency statistics calculation") Signed-off-by: SteveX Yang --- v2: removed long cflags and added 'latencystats' as a dependency of testpmd --- app/test-pmd/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index ea56e547b..92b425c27 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -25,6 +25,9 @@ sources = files('5tswap.c', 'util.c') deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci'] +if dpdk_conf.has('RTE_LIBRTE_LATENCYSTATS') + deps += 'latencystats' +endif if dpdk_conf.has('RTE_LIBRTE_PDUMP') deps += 'pdump' endif