summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e5867b0)
raw | patch | inline | side by side (parent: e5867b0)
author | Korynkevych, RomanX <romanx.korynkevych@intel.com> | |
Wed, 13 Jul 2016 09:30:49 +0000 (10:30 +0100) | ||
committer | Kim Jones <kim-marie.jones@intel.com> | |
Wed, 3 Aug 2016 12:44:36 +0000 (13:44 +0100) |
Updated README with instructions on how to build and link to the static
DPDK library for dpdk plugins.
Change-Id: I580cccc8af648c270c5a35689dc536a283f1689a
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
DPDK library for dpdk plugins.
Change-Id: I580cccc8af648c270c5a35689dc536a283f1689a
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
README | patch | blob | history |
index ab6f44dd07c22b235c0738b2b5a3b4ab4f55c8b1..98d230d0070eb9175104c9ded8d0a77031ada99c 100644 (file)
--- a/README
+++ b/README
booted at system startup time.
- Run ldconfig to update the shared library cache.
+ Build static DPDK library for use with collectd:
+ - To configure DPDK to build the combined static library libdpdk.a
+ ensure that CONFIG_RTE_BUILD_SHARED_LIB is set to n in
+ config/common_base in your DPDK as follows:
+ #
+ # Compile to share library
+ #
+ CONFIG_RTE_BUILD_SHARED_LIB=n
+ - Prepare the configuration for the appropriate target as specified at:
+ http://dpdk.org/doc/guides/linux_gsg/build_dpdk.html.
+ For example:
+ $ make config T=x86_64-native-linuxapp-gcc
+ - Build the target using -fPIC:
+ $ make EXTRA_CFLAGS=-fPIC -j
+ - Install DPDK to /usr
+ $ sudo make install prefix=/usr
+
Configure collectd with DPDK:
NOTE: The Address-Space Layout Randomization (ASLR) security feature in Linux should
be disabled, in order for the same hugepage memory mappings to be present in all
@@ -1082,8 +1099,11 @@ NOTE: The Address-Space Layout Randomization (ASLR) security feature in Linux sh
See http://dpdk.org/doc/guides/prog_guide/multi_proc_support.html
- Generate the build script as specified below. (i.e. run `build.sh').
- - Configure collectd with the DPDK library:
+ - Configure collectd with the DPDK shared library:
./configure --with-libdpdk=/usr
+ NOTE: To configure collectd with the DPDK static library:
+ ./configure --with-libdpdk=/usr CFLAGS=" -lpthread -Wl,--whole-archive
+ -Wl,-ldpdk -Wl,-lm -Wl,-lrt -Wl,-lpcap -Wl,-ldl -Wl,--no-whole-archive"
Libraries:
...