[dpdk-dev] [PATCH 6/8] examples/performance-thread: add pthread shim to meson

Bruce Richardson bruce.richardson at intel.com
Mon Oct 14 13:34:46 CEST 2019


Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 examples/meson.build                          |  1 +
 .../pthread_shim/meson.build                  | 23 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 examples/performance-thread/pthread_shim/meson.build

diff --git a/examples/meson.build b/examples/meson.build
index 7dedc787d..ff4e8608c 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -31,6 +31,7 @@ all_examples = [
 	'multi_process/symmetric_mp',
 	'ntb', 'packet_ordering',
 	'performance-thread/l3fwd-thread',
+	'performance-thread/pthread_shim',
 	'ptpclient',
 	'qos_meter', 'qos_sched',
 	'rxtx_callbacks',
diff --git a/examples/performance-thread/pthread_shim/meson.build b/examples/performance-thread/pthread_shim/meson.build
new file mode 100644
index 000000000..4feec05a7
--- /dev/null
+++ b/examples/performance-thread/pthread_shim/meson.build
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2019 Intel Corporation
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+build = dpdk_conf.has('RTE_ARCH_X86_64') or dpdk_conf.has('RTE_ARCH_ARM64')
+deps += ['timer']
+
+sources += files('main.c',
+	'pthread_shim.c',
+	'../common/lthread.c',
+	'../common/lthread_cond.c',
+	'../common/lthread_diag.c',
+	'../common/lthread_mutex.c',
+	'../common/lthread_sched.c',
+	'../common/lthread_tls.c',
+	'../common/arch/@0@/ctx.c'.format(arch_subdir))
+
+includes += include_directories('../common',
+	'../common/arch/@0@'.format(arch_subdir))
-- 
2.21.0



More information about the dev mailing list