numam-dpdk/lib/librte_eal
David Marchand 3ef1a0b4a1 eal: fix multiple definition of per lcore thread id
Because of the inline accessor + static declaration in rte_gettid(),
we end up with multiple symbols for RTE_PER_LCORE(_thread_id).
Each compilation unit will pay a cost when accessing this information
for the first time.

$ nm build/app/dpdk-testpmd | grep per_lcore__thread_id
0000000000000054 d per_lcore__thread_id.5037
0000000000000040 d per_lcore__thread_id.5103
0000000000000048 d per_lcore__thread_id.5259
000000000000004c d per_lcore__thread_id.5259
0000000000000044 d per_lcore__thread_id.5933
0000000000000058 d per_lcore__thread_id.6261
0000000000000050 d per_lcore__thread_id.7378
000000000000005c d per_lcore__thread_id.7496
000000000000000c d per_lcore__thread_id.8016
0000000000000010 d per_lcore__thread_id.8431

Make it global as part of the DPDK_21 stable ABI.

Fixes: ef76436c68 ("eal: get unique thread id")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2020-07-08 14:39:26 +02:00
..
arm eal/arm: adjust memory barriers for IO on ARMv8 2020-07-08 13:44:23 +02:00
common eal: fix multiple definition of per lcore thread id 2020-07-08 14:39:26 +02:00
freebsd eal: relocate per thread symbols to common 2020-07-08 14:39:26 +02:00
include eal: fix multiple definition of per lcore thread id 2020-07-08 14:39:26 +02:00
linux eal: relocate per thread symbols to common 2020-07-08 14:39:26 +02:00
ppc build: add arch-specific header path to global includes 2020-05-10 23:45:02 +02:00
unix timer: move from common to Unix directory 2020-06-23 18:33:20 +02:00
windows eal: relocate per thread symbols to common 2020-07-08 14:39:26 +02:00
x86 build: add arch-specific header path to global includes 2020-05-10 23:45:02 +02:00
Makefile eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
meson.build eal: introduce internal wrappers for file operations 2020-06-15 19:24:37 +02:00
rte_eal_exports.def mbuf: build on Windows 2020-07-07 01:47:24 +02:00
rte_eal_version.map eal: fix multiple definition of per lcore thread id 2020-07-08 14:39:26 +02:00