Skip to contentSkip to conversation

eal: fix symbol missing in version map

PATCH Applied Cunming Liang 5 participants 9 messages Feb 25, 2015 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

cover eal: fix symbol missing in version map

These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.

Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map

 lib/librte_eal/bsdapp/eal/rte_eal_version.map   | 2 ++
 lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
 2 files changed, 4 insertions(+)
Signature · 1 line
1.8.1.4

A message that is not in the archive (sent off-list or not yet received): 1424835589-18122-1-git-send-email-cunming.liang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org

#2 lore raw

PATCH 1/2 eal/linux: fix symbol missing in version map

As per_lcore__socket_id and rte_sys_gettid are missing in version map, it causes compiling error when CONFIG_RTE_BUILD_SHARED_LIB is enabled.

---
 lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
 1 file changed, 2 insertions(+)
lib/librte_eal/linuxapp/eal/rte_eal_version.map +2 -0
index c207cee..17515a9 100644
@@ -10,6 +10,7 @@ DPDK_2.0 {
 	pci_driver_list;
 	per_lcore__lcore_id;
 	per_lcore__rte_errno;
+	per_lcore__socket_id;
 	rte_cpu_check_supported;
 	rte_cpu_get_flag_enabled;
 	rte_cycles_vmware_tsc_map;
@@ -83,6 +84,7 @@ DPDK_2.0 {
 	rte_snprintf;
 	rte_strerror;
 	rte_strsplit;
+	rte_sys_gettid;
 	rte_thread_get_affinity;
 	rte_thread_set_affinity;
 	rte_vlog;
Signature · 1 line
1.8.1.4
#3 lore raw

PATCH 2/2 eal/bsd: fix symbol missing in version map

In reply to a message not in the archive

As per_lcore__socket_id and rte_sys_gettid are missing in version map, it causes compiling error when CONFIG_RTE_BUILD_SHARED_LIB is enabled.

---
 lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++
 1 file changed, 2 insertions(+)
lib/librte_eal/bsdapp/eal/rte_eal_version.map +2 -0
index c207cee..17515a9 100644
@@ -10,6 +10,7 @@ DPDK_2.0 {
 	pci_driver_list;
 	per_lcore__lcore_id;
 	per_lcore__rte_errno;
+	per_lcore__socket_id;
 	rte_cpu_check_supported;
 	rte_cpu_get_flag_enabled;
 	rte_cycles_vmware_tsc_map;
@@ -83,6 +84,7 @@ DPDK_2.0 {
 	rte_snprintf;
 	rte_strerror;
 	rte_strsplit;
+	rte_sys_gettid;
 	rte_thread_get_affinity;
 	rte_thread_set_affinity;
 	rte_vlog;
Signature · 1 line
1.8.1.4
#4 lore raw
In reply to a message not in the archive
Quoted 4 lines · Cunming Liang

These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.

Quoted 8 lines

Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map

 lib/librte_eal/bsdapp/eal/rte_eal_version.map   | 2 ++
 lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
 2 files changed, 4 insertions(+)

Hi Liang,

I've confirmed it works on my Linux environment.

Thanks,
Tetsuya

#5 lore raw
In reply to a message not in the archive
Quoted 12 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Cunming Liang
Sent: Wednesday, February 25, 2015 3:40 AM
To: [email protected]
Subject: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map

These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y.
The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing
in the version map.
Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.

Quoted 8 lines

Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map

 lib/librte_eal/bsdapp/eal/rte_eal_version.map   | 2 ++
 lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
 2 files changed, 4 insertions(+)

Series Acked-by: John McNamara <[email protected]>

A message that is not in the archive (sent off-list or not yet received): B27915DBBA3421428155699D51E4CFE2EC7A74-kPTMFJFq+rELt2AQoY/[email protected]

#7 lore raw
Quoted 5 lines
Quoted 5 lines

These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y.
The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing
in the version map.
Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.

Please use Reported-by: in such case.

Fixes ef76436c6834 ("eal: get unique thread id")
Fixes 9e29251b2afa ("eal: thread affinity API")
Quoted 3 lines
Quoted 3 lines

Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map

Merged together

Quoted 1 line

Series Acked-by: John McNamara <[email protected]>

Applied, thanks

#8 lore raw
In reply to a message not in the archive
Quoted 4 lines · Cunming Liang

These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.

Quoted 12 lines

Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map

 lib/librte_eal/bsdapp/eal/rte_eal_version.map   | 2 ++
 lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
 2 files changed, 4 insertions(+)
Signature · 1 line
1.8.1.4

NAK

This is the wrong way to fix this problem. Exporting global variables is never a good solution when it can be helped. Instead, rte_socket id should be made a non inline function and exported. Then the definition of per_lcore_socket_id can be made private, protecting it from type changes.

Neil

A message that is not in the archive (sent off-list or not yet received): 20150225123053.GA31224-B26myB8xz7F8NnZeBjwnZQMhkBWG/[email protected]

#10 lore raw

2015-02-25 07:30, Neil Horman:

Quoted 14 lines · Cunming Liang
Quoted 4 lines

These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.

Quoted 8 lines

Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map

 lib/librte_eal/bsdapp/eal/rte_eal_version.map   | 2 ++
 lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
 2 files changed, 4 insertions(+)
Quoted 6 lines

NAK

This is the wrong way to fix this problem. Exporting global variables is never a good solution when it can be helped. Instead, rte_socket id should be made a non inline function and exported. Then the definition of per_lcore_socket_id can be made private, protecting it from type changes.

Neil, I applied the patches to fix compilation on HEAD. In case your comment makes sense, a cleanup would be appreciated.

Thanks

#11 lore raw
Quoted 22 lines · Thomas Monjalon

2015-02-25 07:30, Neil Horman:

Quoted 14 lines · Cunming Liang
Quoted 4 lines

These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.

Quoted 8 lines

Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map

 lib/librte_eal/bsdapp/eal/rte_eal_version.map   | 2 ++
 lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
 2 files changed, 4 insertions(+)
Quoted 6 lines

NAK

This is the wrong way to fix this problem. Exporting global variables is never a good solution when it can be helped. Instead, rte_socket id should be made a non inline function and exported. Then the definition of per_lcore_socket_id can be made private, protecting it from type changes.

Quoted 5 lines

Neil, I applied the patches to fix compilation on HEAD. In case your comment makes sense, a cleanup would be appreciated.

Thanks

Sent. You and Cunming are CC-ed
Thanks
Neil